treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
763 stars 32 forks source link

Support for min/max constraints #169

Open iacore opened 2 years ago

iacore commented 2 years ago

To support responsive ui design, this ui library must support minimum and maximum constraint on box size.

For example, a text column shouldn't be wider than 700px, otherwise it's unreadable.

This feature is unavailable in figma, but necessary for ui design.

treeform commented 2 years ago

I really want this feature Figma. The way I will probably implement this is with frame switching. Once frame reaches max size, it switches to a different frame. I don't think max size is flexible enough. A lot of time the UI totally changes at smaller sizes.

iacore commented 2 years ago

Do you plan to support other UI design software and make your own that support minmax() and device query like that from CSS?