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;