fix(client): right-shift on non-standard themes (closes #1646)

This commit is contained in:
Elian Doran 2025-04-07 17:55:35 +03:00
parent 63458d55d3
commit d33162785e
No known key found for this signature in database
2 changed files with 17 additions and 13 deletions

View File

@ -11,19 +11,6 @@ export default class LauncherContainer extends FlexContainer<LauncherWidget> {
super(isHorizontalLayout ? "row" : "column");
this.id("launcher-container");
if (isHorizontalLayout) {
this.css("width", "100%");
this.css("height", "100%");
this.css("overflow-x", "auto");
this.css("overflow-y", "hidden");
} else {
this.css("height", "100%");
this.css("overflow-x", "hidden");
this.css("overflow-y", "auto");
}
this.css("scrollbar-gutter", "stable both-edges");
this.filling();
this.isHorizontalLayout = isHorizontalLayout;

View File

@ -108,6 +108,10 @@ body.layout-horizontal > .horizontal {
align-items: center;
}
#launcher-container {
scrollbar-gutter: stable both-edges;
}
#launcher-pane.vertical {
--launcher-pane-border-color: unset;
--launcher-pane-background-color: var(--launcher-pane-vert-background-color);
@ -126,6 +130,12 @@ body.layout-horizontal > .horizontal {
padding-bottom: var(--launcher-pane-button-gap);
}
#launcher-pane.vertical #launcher-container {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
#launcher-pane.horizontal {
--launcher-pane-border-color: var(--launcher-pane-horiz-border-color);
--launcher-pane-background-color: var(--launcher-pane-horiz-background-color);
@ -144,6 +154,13 @@ body.layout-horizontal > .horizontal {
align-items: center;
}
#launcher-pane.horizontal #launcher-container {
width: 100%;
height: 100%;
overflow-x: auto;
overflow-y: hidden;
}
@media (max-width: 991px) {
#mobile-bottom-bar {
background: var(--launcher-pane-horiz-background-color);