mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
fix(client): right-shift on non-standard themes (closes #1646)
This commit is contained in:
parent
63458d55d3
commit
d33162785e
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user