Skip to content

Commit fc34733

Browse files
committed
fix: apply sidebar fixes for Windows also to Linux (#329)
1 parent aa2dde8 commit fc34733

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

source/4-user-interface/sidebars.css

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,26 @@ body:not(.show-sidebar-header-buttons) {
2222
--sidebar-tabs-unhovered-height: 10px;
2323
}
2424

25-
/* WINDOWS */
26-
/* fix sidebar header buttons on Windows not being clickable see #247 */
27-
body.mod-windows:not(.show-sidebar-header-buttons) .titlebar {
28-
height: 35px;
25+
/* WINDOWS / LINUX */
26+
/* fix sidebar header buttons not being clickable see #247 */
27+
body:is(.mod-windows, .mod-linux) {
28+
&:not(.show-sidebar-header-buttons) .titlebar {
29+
height: 35px;
30+
}
31+
32+
&.is-hidden-frameless:not(.is-grabbing, .is-fullscreen, .show-sidebar-header-buttons)
33+
.mod-top
34+
.workspace-tab-header-container {
35+
-webkit-app-region: no-drag;
36+
}
2937
}
3038

3139
/* sync background of windows buttons with sidebar color #329 */
32-
body.mod-windows.is-hidden-frameless:not(.is-fullscreen) .titlebar-button-container.mod-right {
40+
body:is(.mod-windows, .mod-linux).is-hidden-frameless:not(.is-fullscreen)
41+
.titlebar-button-container.mod-right {
3342
background-color: transparent;
3443
}
3544

36-
.is-hidden-frameless.mod-windows:not(.is-grabbing, .is-fullscreen, .show-sidebar-header-buttons)
37-
.mod-top
38-
.workspace-tab-header-container {
39-
-webkit-app-region: no-drag;
40-
}
41-
4245
body:not(.show-sidebar-header-buttons)
4346
:is(.mod-left-split, .mod-right-split)
4447
:is(

0 commit comments

Comments
 (0)