Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Keep reference picker scrollbar visible

Bitti95636a4a8e59
diff --git a/src/styles/references.css b/src/styles/references.css
index d941ae2..ff3efa9 100644
--- a/src/styles/references.css
+++ b/src/styles/references.css
@@ -705,11 +705,41 @@
flex-direction: column;
gap: var(--space-2);
overflow-y: auto;
- /* Put the overlay scrollbar in the dialog margin, clear of the cards. */
+ scrollbar-gutter: stable;
+ /* Keep the scrollbar in the dialog margin, clear of the cards. */
margin-inline-end: calc(-1 * var(--space-4));
padding-inline-end: var(--space-4);
}
+/* Explicit styling keeps the thumb visible even when the platform normally
+ hides idle overlay scrollbars. overflow-y: auto limits it to overflowing lists. */
+.reference-preset-dialog__body > section::-webkit-scrollbar {
+ width: 10px;
+}
+
+.reference-preset-dialog__body > section::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+.reference-preset-dialog__body > section::-webkit-scrollbar-thumb {
+ min-height: 32px;
+ border: 2px solid transparent;
+ border-radius: 999px;
+ background: var(--text-muted);
+ background-clip: padding-box;
+}
+
+.reference-preset-dialog__body > section::-webkit-scrollbar-thumb:hover {
+ background-color: var(--text-secondary);
+}
+
+@supports not selector(::-webkit-scrollbar) {
+ .reference-preset-dialog__body > section {
+ scrollbar-width: thin;
+ scrollbar-color: var(--text-muted) transparent;
+ }
+}
+
.reference-preset-search {
flex: 0 0 auto;
height: var(--field-height);