DrawDB 官网自定义修改版。
Go to file
Felix Zedén Yverås caae8e7385 fix: improve support for browsers with collapsing url bars
Some mobile browsers (e.g. chrome) uses collapsing url bars (the
bar collapses when you scroll). In such cases, `100vh` typically
refers to the full height of the viewport when the url bar is
collapsed (see also `svh`, `lvh` and `dvh`, e.g. at
<https://ishadeed.com/article/new-viewport-units/#the-small-large-and-dynamic-viewport-units>
). This meant that on my tablet, the editor would extend below the
visible page until I scrolled it into view.

This commit re-uses a fix from some of my other projects
(specifically
<5c7e788d40/src/styles/globals.css (L14-L28)>
) where the root element is set to fill 100% height. This avoids
dealing with viewport units altogether. On my tablet, this means
that the url bar is visible and that the editor does not extend
below the visible page.
2024-07-14 15:36:54 +02:00
.github Add FUNDING.yml 2024-07-02 13:18:38 +03:00
public Add robots.txt 2024-04-06 05:19:13 +03:00
src fix: improve support for browsers with collapsing url bars 2024-07-14 15:36:54 +02:00
.dockerignore Create .dockerignore 2024-05-22 15:17:07 +03:00
.env.sample Fix env variables 2024-03-15 21:09:50 +02:00
.eslintrc.cjs Add prettier 2024-04-06 11:11:12 +03:00
.gitignore Migrate to Vite from CRA 2023-12-16 05:39:13 +02:00
.prettierrc.json Add prettier 2024-04-06 11:11:12 +03:00
compose.yml Expose host directly in compose 2024-06-01 20:53:07 +03:00
CONTRIBUTING.md Create CONTRIBUTING.md 2024-05-22 14:59:41 +03:00
Dockerfile Fix dockerfile comments 2024-04-14 10:20:14 +03:00
drawdb.gif Update Readme 2024-04-06 12:39:13 +03:00
index.html fix: update remaining vercel urls to drawdb.app 2024-07-13 12:58:36 +02:00
LICENSE Add license 2024-04-06 10:55:54 +03:00
package-lock.json Configure i18n and add simplified chinese (#99) 2024-05-16 06:45:47 +03:00
package.json Expose host directly in compose 2024-06-01 20:53:07 +03:00
postcss.config.js Migrate to Vite from CRA 2023-12-16 05:39:13 +02:00
README.md fix: update remaining vercel urls to drawdb.app 2024-07-13 12:58:36 +02:00
tailwind.config.js Redo signup page 2024-01-03 21:37:44 +02:00
vercel.json Add vercel.json 2024-02-27 15:16:14 +02:00
vite.config.js Migrate to Vite from CRA 2023-12-16 05:39:13 +02:00

drawdb logo

Free, simple, and intuitive database design tool and SQL generator.

drawDB · Discord · X

demo

drawDB

DrawDB is a robust and user-friendly database entity relationship (DBER) editor right in your browser. Build diagrams with a few clicks, export sql scripts, customize your editor, and more without creating an account. See the full set of features here.

Getting Started

Local Development

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev

Build

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build

Docker Build

docker build -t drawdb .
docker run -p 3000:80 drawdb

Set up the server and environment variables according to .env.sample for the survey and bug report forms.