Skip to content

Build your personal knowledge base with Trilium Notes

style/right pane toggle handle: restyle

Adorian Doran7ee7e8ff31a4
diff --git a/apps/client/src/widgets/sidebar/RightPaneToggleHandle.css b/apps/client/src/widgets/sidebar/RightPaneToggleHandle.css
index d032d4667b..39e6f95604 100644
--- a/apps/client/src/widgets/sidebar/RightPaneToggleHandle.css
+++ b/apps/client/src/widgets/sidebar/RightPaneToggleHandle.css
@@ -1,5 +1,4 @@
-/* Minimal functional styling only — refine visuals later.
- The handle is a flex sibling of #right-pane inside #vertical-main-container,
+/* The handle is a flex sibling of #right-pane inside #vertical-main-container,
so it reserves its own 12px column and fully owns its background. */
.right-pane-toggle-handle {
/* Inherited from #right-pane-wrapper (RightPanelContainer.css); fallback for safety. */
@@ -7,13 +6,26 @@
display: flex;
align-items: center;
justify-content: center;
- padding: 0;
border: 0;
+ border-left: 1px solid transparent;
+ border-bottom: 1px solid var(--status-bar-border-color);
background: transparent;
+ padding: 0;
font-size: 16px;
cursor: pointer;
-}
+ margin-right: 2px;
+
+ &.right-pane-toggle-handle-action-expand {
+ background: var(--note-split-background-color, var(--main-background-color));
+ border-left-color: var(--main-border-color);
+ }
+
+ &.right-pane-toggle-handle-action-collapse {
+ background: var(--right-pane-background-color);
+ border-right-color: var(--main-border-color);
+ }
-.right-pane-toggle-handle:hover {
- background-color: var(--hover-item-background-color);
-}
+ &:hover {
+ background-color: var(--hover-item-background-color);
+ }
+}
\ No newline at end of file