ZIm/crates/ui/src
Finn Evers d312a13f8a
ui: Fix content shift when selecting last tab (#31266)
Follow-up to #29061

This PR ensures that the last tab does not flicker when either
selecting. It also fixes an issue where the layout would shift in the
new last tab when closing the last tab.


https://github.com/user-attachments/assets/529a2a92-f25c-4ced-a992-fb6b2d3b5f61

This happened because in #29061, the left padding was removed due to
issues with borders. However, the padding is relevant for the content to
not shift (we are basically doing border-box sizing manually here).
Instead, we need to remove the padding on the right side, as there is
already a border present on the right side and this padding would make
the last tab slightly larger than all other tabs.


https://github.com/user-attachments/assets/c3a10b3c-4a1d-4160-9b68-7538207bb46e


Release Notes:

- Removed a small flicker when selecting or closing the last tab in a
pane.
2025-05-24 23:36:51 +03:00
..
components ui: Fix content shift when selecting last tab (#31266) 2025-05-24 23:36:51 +03:00
styles Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00
traits chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +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 agent: Add UI for upsell scenarios (#29805) 2025-05-05 00:48:06 +00:00
prelude.rs Merge Component and ComponentPreview trait (#28365) 2025-04-08 16:09:06 -06: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