1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00
unleash.unleash/frontend/src
Thomas Heartman 0e1ab236c9
Fix/constraint value wrapping (#9873)
Changes how constraint values are treated and wrapped.

Previously, they would have their own column and fill it up:

![image](https://github.com/user-attachments/assets/3d13fa75-2b53-4393-8bb2-8677741016e3)

Then we changed it to always being on the next line below certain
widths:

![image](https://github.com/user-attachments/assets/e2fea1e2-3ab8-4000-a727-831802c583c4)

But that would also cause it to break even if there was no need for it.
This iteration instead uses display `contents` on the value lists to let
them be handled by the flex flow of the containing element. This allows
them to only wrap when necessary.

<img width="995" alt="image"
src="https://github.com/user-attachments/assets/d61f6f49-b1ef-49ec-91a4-df868cedc678"
/>

Of course, if they don't need to wrap, they don't:
<img width="1030" alt="image"
src="https://github.com/user-attachments/assets/84c27997-7cb2-4e1b-8977-d43a46f7de6e"
/>


This loom video shows how it folds in the most complex scenario, with
all elements being visible and within bounds down to about 300px:
https://www.loom.com/share/4f29cdb105d54edeb70edd54dfaca9f9
2025-04-30 13:57:57 +02:00
..
__mocks__ refactor: format files (#719) 2022-02-18 09:51:10 +01:00
assets fix: appropriately size case icon for non-editing constraints (#9869) 2025-04-30 08:37:16 +00:00
component Fix/constraint value wrapping (#9873) 2025-04-30 13:57:57 +02:00
constants chore: feedback link on feature strategy (#9633) 2025-03-27 15:19:14 +02:00
contexts chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
hooks feat: now updating/editing strategy will store constraints in recents (#9861) 2025-04-29 15:33:06 +03:00
interfaces feat: show backend and frontend sdks separately (#9857) 2025-04-29 10:36:02 +02:00
openapi feat: show backend and frontend sdks separately (#9857) 2025-04-29 10:36:02 +02:00
themes refactor: variant colors (#9586) 2025-03-20 14:44:33 +01:00
types
utils feat: redirect logic refactor (#9734) 2025-04-17 12:07:08 +02:00
index.tsx feat: use Unleash React SDK in Admin UI (#9723) 2025-04-10 08:26:30 +02:00
setupTests.ts chore: scroll-related UX adjustments in the Unleash AI chat (#8478) 2024-10-18 14:38:46 +01:00
vite-env.d.ts