drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.09k stars 855 forks source link

Add a setting for whether to show comments #55

Open tagnja opened 2 months ago

tagnja commented 2 months ago

As someone who is not from an English-speaking country, I need to show comments in my native language.

For example:

image
1ilit commented 2 months ago

Hey @tagnja, thanks for the suggestion

You can see the comment if you click the more button on the table image

or hover over the column to see the column comments image

I think adding comments directly to the diagram would crowd the UI too much

tagnja commented 2 months ago

Comments are not displayed by default. But they can be shown through settings.

If comments are not displayed, it is not possible to export an image with comments.

psychowood commented 1 month ago

+1 for the suggestion. It is very useful when exporting a diagram. I'd link it with the "Field Details" view Toggle or to a dedicated toggle under view.

To avoid cramping the UI too much they could be shown below the name when the option is active, something like this:

image

1ilit commented 1 month ago

I'm honestly not a big fan of how it looks. For fields that do have a comment it still looks crammed. If we increase the height of fields to fit comments in there, the fields that don't have a comment will look empty.. idk I'll try to play around with the design to see if I can come up with something nice