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
.id(self.id)
.flex()
.flex_wrap()
.items_center()
.flex_shrink_0()
.cursor_pointer()

View file

@ -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)