Skip to content

Commit 2a97c8d

Browse files
fix(tabsbar): make tab group label spacing more consistent
Keep a more consistent block margin whenever the sidebar is expanded or not. There still wil be a small jump if the group is not collapsed but I believe that's expected. Closes #1007.
1 parent 94acab5 commit 2a97c8d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

theme/parts/tabsbar.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,19 @@ tab-group {
541541
#tabbrowser-tabs[orient="vertical"][expanded] & {
542542
margin-inline-start: calc(var(--gnome-toolbar-padding) * 2) !important;
543543
padding-inline-start: var(--tab-group-line-thickness);
544+
}
545+
}
546+
547+
.tab-group-label-container {
548+
#tabbrowser-tabs[orient="vertical"][expanded] & {
549+
margin-block: 0 !important;
550+
margin-inline-start: calc(var(--tab-group-line-thickness) * -1);
544551

545-
.tab-group-label-container {
546-
margin-inline-start: calc(var(--tab-group-line-thickness) * -1);
552+
}
553+
#tabbrowser-tabs[orient="vertical"]:not([expanded]) & {
554+
tab-group[collapsed] & {
555+
margin-block: var(--gnome-toolbar-padding) !important;
547556
}
548-
549557
}
550558
}
551559

0 commit comments

Comments
 (0)