tab: Remove w_full from TabBar. (#683)

This commit is contained in:
Jason Lee 2025-03-04 17:31:40 +08:00 committed by GitHub
parent f8a530279a
commit 8c4884d881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -507,6 +507,7 @@ impl RenderOnce for Tab {
self.base self.base
.id(self.id) .id(self.id)
.flex() .flex()
.flex_wrap()
.items_center() .items_center()
.flex_shrink_0() .flex_shrink_0()
.cursor_pointer() .cursor_pointer()

View file

@ -159,11 +159,8 @@ impl RenderOnce for TabBar {
self.base self.base
.group("tab-bar") .group("tab-bar")
.w_full()
.relative() .relative()
.flex() .flex()
.flex_none()
.flex_nowrap()
.items_center() .items_center()
.bg(bg) .bg(bg)
.text_color(cx.theme().tab_foreground) .text_color(cx.theme().tab_foreground)