mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
style(frontend): apply thin theme-matched scrollbars globally
This commit is contained in:
1 parent
332c3271d2
commit
7cac8baade
2 files changed
+15
-7
No files matched your search
@@ -368,7 +368,7 @@ export function ProviderSettings() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2 max-h-96 overflow-y-auto scrollbar-thin pt-4 pb-1 pr-1 [mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
<div className="space-y-2 max-h-96 overflow-y-auto pt-4 pb-1 pr-1 [mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
{filteredAvailableProviders.length === 0 ? (
|
||||
<p className="text-sm text-muted-foreground py-2">
|
||||
{availableSearch ? 'No providers match your search.' : 'No available providers.'}
|
||||
|
||||
+14
-6
@@ -92,6 +92,14 @@
|
||||
--color-syntax-punctuation: #6b7280;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
:root:not(.dark) {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
html {
|
||||
background-color: var(--color-background);
|
||||
min-height: calc(100% + env(safe-area-inset-top));
|
||||
@@ -477,27 +485,27 @@ input:-webkit-autofill:active {
|
||||
background-color: color-mix(in oklab, var(--color-diff-delete) 15%, transparent);
|
||||
}
|
||||
|
||||
/* Custom scrollbar styling */
|
||||
.scrollbar-thin {
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-border) transparent;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar {
|
||||
*::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-track {
|
||||
*::-webkit-scrollbar-track,
|
||||
*::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-thumb {
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: var(--color-border);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--color-muted-foreground);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user