From d3fc4b0afdc4bf2cae55b6e117734c72c0280e2d Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 29 Oct 2026 10:18:50 +1100 Subject: [PATCH] fix: sidebar glass and compact rail polish - Compact (icon-only) rail tiles stay rounded for strip/sharp style presets; they follow --bsplus-sidebar-radius like the folder arcs (pill keeps its capsule) - Glass style now fills closed folder rows (no backdrop-filter, which breaks the drill .sub clip on Chromium/Edge); open folders remain transparent - Glass rows use 4px top/bottom margins so the first row no longer hugs the menu top and drill panel headers (8px rhythm preserved) --- src/css/injected.scss | 8 ++++++++ src/css/injected/sidebar-styles.scss | 15 +++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/css/injected.scss b/src/css/injected.scss index 99034ba3..a203935f 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -722,6 +722,14 @@ body.icon-only-sidebar { } } + /* Rail tiles follow the user radius even for squared presets (strip/sharp): + the compact rail's shape language is the rounded folder arc, so a + square active/hover tile there reads as a glitch. Pill keeps its + full capsule (it is the "rounder" shape, not the square one). */ + #menu#menu:not(.bsplus-sidebar-style-pill) > ul > :is(li, section) { + border-radius: var(--bsplus-sidebar-radius, 12px) !important; + } + #menu#menu > ul > .hasChildren { position: static !important; backdrop-filter: none !important; diff --git a/src/css/injected/sidebar-styles.scss b/src/css/injected/sidebar-styles.scss index ead1d63c..e1f46cb4 100644 --- a/src/css/injected/sidebar-styles.scss +++ b/src/css/injected/sidebar-styles.scss @@ -90,17 +90,24 @@ $sidebar-motion: 0.4s cubic-bezier(0.4, 0, 0.2, 1); } &.bsplus-sidebar-style-glass { - /* Never put backdrop-filter on an open folder — it becomes a clip - containing-block and hides `.sub` labels on Chromium/Edge. */ + /* Never put backdrop-filter on a folder — it becomes a clip + containing-block and hides `.sub` labels on Chromium/Edge. Lean rows + blur; closed folders keep the translated glass surface without blur; + open folders drop the fill entirely so `.sub` stays clip-safe. */ #{$item} { &:not(:has(> .sub)) { - margin: 0 8px 8px !important; + margin: 4px 8px 4px !important; background: rgba(255, 255, 255, 0.1) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); } - &:has(> .sub) { + &:is(li, section).hasChildren:not(:is(.active, .bsplus-active)) { + margin: 4px 8px 4px !important; + background: rgba(255, 255, 255, 0.1) !important; + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); + } + &:has(> .sub):is(.active, .bsplus-active) { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;