drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

[feature] resizable table

Open ghost opened this issue 1 year ago • 10 comments

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.

ghost avatar Jul 29 '24 20:07 ghost

You can set the table width here image

1ilit avatar Jul 29 '24 20:07 1ilit

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

ghost avatar Jul 29 '24 20:07 ghost

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

1ilit avatar Jul 29 '24 20:07 1ilit

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

ghost avatar Jul 29 '24 20:07 ghost

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

1ilit avatar Jul 30 '24 15:07 1ilit

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.

sudhirVoid avatar Aug 01 '24 09:08 sudhirVoid

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

hkusulja avatar Aug 09 '24 13:08 hkusulja

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?

sudhirVoid avatar Aug 10 '24 17:08 sudhirVoid

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.

JamalArshad147 avatar Sep 24 '24 09:09 JamalArshad147

Would really appreciate to have this feature. Because some of my tables have long names and also enums as types, and others are 2-3 times smaller, but I can't use that space.

wowkin2 avatar May 05 '25 11:05 wowkin2