ZIm/crates/ui/src
Finn Evers 7f1a5c6ad7
ui: Make toggle button group responsive (#36100)
This PR improves the toggle button group to be more responsive across
different layouts. This is accomplished by ensuring each button takes up
the same amount of space in the parent containers layout.

Ideally, this should be done with grids instead of a flexbox container,
as this would be much better suited for this purpose. Yet, since we lack
support for this, we go with this route for now.

| Before | After |
| --- | --- |
| <img width="1608" height="1094" alt="Bildschirmfoto 2025-08-13 um 11
24 26"
src="https://github.com/user-attachments/assets/2a4b5a59-6483-4f79-8fcb-e26e22071795"
/> | <img width="1608" height="1094" alt="Bildschirmfoto 2025-08-13 um
11 29 36"
src="https://github.com/user-attachments/assets/e6402729-6a8f-4a44-b79e-a569406edfff"
/> |


Release Notes:

- N/A
2025-08-13 14:02:20 +02:00
..
components ui: Make toggle button group responsive (#36100) 2025-08-13 14:02:20 +02:00
styles Recategorize a few items in the component preview (#35681) 2025-08-05 23:11:43 +00:00
traits ui: Make toggle button group responsive (#36100) 2025-08-13 14:02:20 +02:00
utils Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00
component_prelude.rs component: Component crate cleanup (#29967) 2025-05-06 03:41:52 +00:00
components.rs onboarding: Add the AI page (#35351) 2025-08-01 10:43:59 -04:00
prelude.rs Move the LoadingLabel component to the UI crate (#33893) 2025-07-04 04:49:11 +00:00
styles.rs Add StatusToast & the ToastLayer (#26232) 2025-03-06 20:37:54 +00:00
traits.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
ui.rs ui_macros: Remove DerivePathStr macro (#30862) 2025-05-17 10:05:55 +00:00
utils.rs welcome: Theme preview tile (#29689) 2025-04-30 17:46:11 +00:00