Skip to content

Build your personal knowledge base with Trilium Notes

style/right pane peek button: tweak the gutter for the horizontal layout

Adorian Doran1d045d4e4833
diff --git a/apps/client/src/widgets/sidebar/RightPanePeekButton.css b/apps/client/src/widgets/sidebar/RightPanePeekButton.css
index c43d897104..1069021ac9 100644
--- a/apps/client/src/widgets/sidebar/RightPanePeekButton.css
+++ b/apps/client/src/widgets/sidebar/RightPanePeekButton.css
@@ -30,7 +30,6 @@ body.desktop.background-effects #center-pane:has(.note-split.last-visible.bgfx)
align-items: center;
justify-content: center;
border: 0;
- border-bottom: 1px solid var(--status-bar-border-color);
background: transparent;
padding: 0;
font-size: 16px;
@@ -38,6 +37,10 @@ body.desktop.background-effects #center-pane:has(.note-split.last-visible.bgfx)
color: var(--peek-button-arrow-color);
transition: background 250ms ease-in, color 250ms ease-in;
+ body.experimental-feature-new-layout.layout-vertical & {
+ border-bottom: 1px solid var(--status-bar-border-color);
+ }
+
&.right-pane-peek-button-action-expand {
background: var(--peek-button-expand-background-color);
diff --git a/apps/client/src/widgets/sidebar/RightPanelContainer.css b/apps/client/src/widgets/sidebar/RightPanelContainer.css
index 0b86a7cdd0..b06e1f577b 100644
--- a/apps/client/src/widgets/sidebar/RightPanelContainer.css
+++ b/apps/client/src/widgets/sidebar/RightPanelContainer.css
@@ -21,6 +21,10 @@ body.experimental-feature-new-layout #vertical-main-container {
padding-inline-end: var(--right-pane-peek-button-gutter);
}
+body.experimental-feature-new-layout.layout-horizontal #vertical-main-container {
+ --right-pane-peek-button-gutter: calc(var(--right-pane-peek-button-width) + 1px);
+}
+
/* Persistent host wrapping the spacer + #right-pane (see RightPanelContainer.tsx), so #right-pane
never reparents between modes. A flex row: docked it fills with the pane (spacer hidden); peek
it lays out [spacer | gutter | pane]. */