дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
The Project view's horizontal scrollbar stayed visible at rest. It is now a DOM overlay (the shared Scrollbar gains a horizontal mode) that shows while the content scrolls sideways and fades about a second after scrolling stops, taking no row space either way; its thumb can still be dragged while visible. With the overlay the tree follows the dominant wheel axis over the last 200 ms, so small sideways deltas in a vertical trackpad gesture no longer shift the tree or reveal the bar. Other trees keep the native horizontal scrollbar. Co-authored-by: faysou <[email protected]>
59 рядки
1.1 KiB
CSS
59 рядки
1.1 KiB
CSS
/* Same look as the global ::-webkit-scrollbar (global.css). */
|
|
.track,
|
|
.horizontalTrack {
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
.track {
|
|
top: 0;
|
|
right: 0;
|
|
width: 10px;
|
|
}
|
|
.horizontalTrack {
|
|
bottom: 0;
|
|
height: 10px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 125ms ease-out;
|
|
}
|
|
.horizontalTrack[data-active] {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transition: none;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.horizontalTrack {
|
|
transition: none;
|
|
}
|
|
}
|
|
.thumb,
|
|
.horizontalThumb {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
border: 2px solid transparent;
|
|
border-radius: 6px;
|
|
background-clip: content-box;
|
|
background-color: var(--scrollbar-thumb);
|
|
will-change: transform;
|
|
}
|
|
.thumb {
|
|
right: 0;
|
|
}
|
|
.horizontalThumb {
|
|
bottom: 0;
|
|
}
|
|
.thumb:hover,
|
|
.thumb[data-dragging],
|
|
.horizontalThumb:hover,
|
|
.horizontalThumb[data-dragging] {
|
|
background-color: var(--scrollbar-thumb-hover);
|
|
}
|
|
/* For the scroller whose vertical scrollbar `Scrollbar` draws. */
|
|
.hideNative::-webkit-scrollbar:vertical {
|
|
width: 0;
|
|
}
|
|
.hideNativeHorizontal::-webkit-scrollbar:horizontal {
|
|
height: 0;
|
|
}
|