drawdb-io / drawdb

Free, simple, and intuitive online database diagram editor and SQL generator.
https://drawdb.app
GNU Affero General Public License v3.0
22.75k stars 1.59k forks source link

[feature] resizable table #188

Open ghost opened 3 months ago

ghost commented 3 months ago

Currently the table component size is fixed, so when the table name is long it'll simply be replaced with 3-dots. It would be nice to resize or auto-resize to accommodate for the full length of the table and column name.

1ilit commented 3 months ago

You can set the table width here image

ghost commented 3 months ago

I see, thanks for pointing that out @1ilit , I didn't know that. This would solve my problem but ultimately I still think manual or auto-resizable card can be useful, is there a plan to have it or a reason to not? I wouldn't mind to help with building it if this feature can be added to the product

1ilit commented 3 months ago

If the tables were individually resized and were all different sizes I don't think the diagrams would look as good

ghost commented 3 months ago

You have a point, but I don't think having too much whitespace on smaller table look good either. I think being able to resize is quite important to me so I can work with normal, big and small tables and effectively utilizing the spaces, and it'll be the user responsibility to make the diagram look good, what do you think?

image

1ilit commented 3 months ago

@sahitya-chandra I'm still not convinced about having this implemented

sudhirVoid commented 3 months ago

If the tables were individually resized and were all different sizes I don't think the diagrams would look as good

What I think is in some table the column name can be long so it is shown as ... In that case I have to increase the width of the whole diagram where the proper management of space will not be there. So, I think the existing feature is very good to set the default table size but at table level too we have to give functionality to drag and expand width. I think.

hkusulja commented 3 months ago

I suggest that each table has its width settings / property. Auto Or fixed or inherited from general settings

sudhirVoid commented 3 months ago

I suggest that each table has its width settings / property. Auto Or fixed or inherited from general settings

Yes this is what I also want to achieve here but in the form of drag and expand from the corners . This will reinitialize the width of that specific table again . I just see that having 2 - 3 clicks just to set width can be irritating if tables are many. So for the ease drag and expand can be the right choice. what you think?

JamalArshad147 commented 2 months ago

I believe it should be the user's choice. If we have enabled them to change the table size in settings then we should also offer a convenient way. If someone prefers to maintain a specific size, that is a matter of personal preference. If someone wants to resize it then he is allowed to do it. This way we will give them the choice or customization option to resize it.