From 8c4884d8818db818234c7ea04b4ec355bda7c21a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 4 Mar 2025 17:31:40 +0800 Subject: [PATCH] tab: Remove `w_full` from TabBar. (#683) --- crates/ui/src/tab/tab.rs | 1 + crates/ui/src/tab/tab_bar.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ui/src/tab/tab.rs b/crates/ui/src/tab/tab.rs index a2903e51..742d820e 100644 --- a/crates/ui/src/tab/tab.rs +++ b/crates/ui/src/tab/tab.rs @@ -507,6 +507,7 @@ impl RenderOnce for Tab { self.base .id(self.id) .flex() + .flex_wrap() .items_center() .flex_shrink_0() .cursor_pointer() diff --git a/crates/ui/src/tab/tab_bar.rs b/crates/ui/src/tab/tab_bar.rs index ad023a62..a4c3b29b 100644 --- a/crates/ui/src/tab/tab_bar.rs +++ b/crates/ui/src/tab/tab_bar.rs @@ -159,11 +159,8 @@ impl RenderOnce for TabBar { self.base .group("tab-bar") - .w_full() .relative() .flex() - .flex_none() - .flex_nowrap() .items_center() .bg(bg) .text_color(cx.theme().tab_foreground)