mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-05-16 01:07:27 +08:00
00f5173a45764a512d21259deafaa110ff49321b
Fixes #858 Previously, changing the table width input in the Settings modal would immediately update the global settings state on every keystroke, bypassing the Confirm button entirely. Closing the modal without confirming still applied the change. This follows the same uncontrolled/controlled pattern already used for MODAL.RENAME and MODAL.LANGUAGE: - Add a local tempTableWidth state in Modal, initialized from current settings - Pass it to SetTableWidth as props (tempWidth / setTempWidth) - Apply to global settings only when the user clicks Confirm (onOk) - Reset to the original value when the user clicks Cancel or closes the modal
Special thanks to:
Next-gen AI-powered intelligent terminal for all platforms
Next-gen AI-powered intelligent terminal for all platforms
Free, simple, and intuitive database schema editor and SQL generator.
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
If you want to enable sharing, set up the server and environment variables according to .env.sample. This is optional unless you need to share files..
Languages
JavaScript
99%
CSS
0.8%
HTML
0.2%
