Show project scrollbars on hover

This commit is contained in:
2026-07-20 12:08:52 +08:00
parent fd8d188f29
commit d15ca2eb5f
2 changed files with 62 additions and 1 deletions

View File

@@ -352,6 +352,8 @@
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
scrollbar-width: none;
scrollbar-color: color-mix(in srgb, var(--senlin-muted) 45%, transparent) transparent;
padding: 16px;
border-right: 1px solid var(--senlin-border);
background: var(--senlin-panel);
@@ -435,6 +437,10 @@
.stage {
min-width: 0;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
scrollbar-width: none;
scrollbar-color: color-mix(in srgb, var(--senlin-muted) 45%, transparent) transparent;
padding: 16px;
background: var(--senlin-bg);
}
@@ -552,11 +558,46 @@
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
scrollbar-width: none;
scrollbar-color: color-mix(in srgb, var(--senlin-muted) 45%, transparent) transparent;
padding: 0 16px 16px;
border-left: 1px solid var(--senlin-border);
background: var(--senlin-panel);
}
.channel-sidebar:hover,
.stage:hover,
.inspector:hover {
scrollbar-width: thin;
}
.channel-sidebar::-webkit-scrollbar,
.stage::-webkit-scrollbar,
.inspector::-webkit-scrollbar {
width: 0;
height: 0;
}
.channel-sidebar:hover::-webkit-scrollbar,
.stage:hover::-webkit-scrollbar,
.inspector:hover::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.channel-sidebar::-webkit-scrollbar-thumb,
.stage::-webkit-scrollbar-thumb,
.inspector::-webkit-scrollbar-thumb {
border-radius: 999px;
background: color-mix(in srgb, var(--senlin-muted) 45%, transparent);
}
.channel-sidebar::-webkit-scrollbar-track,
.stage::-webkit-scrollbar-track,
.inspector::-webkit-scrollbar-track {
background: transparent;
}
.inspector .arco-tabs-header {
margin-bottom: 12px;
}