Fix component scroll offsets not working
This commit is contained in:
parent
eba2fb0f13
commit
a07f343f83
|
@ -16,7 +16,7 @@
|
||||||
let newOffsets = {}
|
let newOffsets = {}
|
||||||
|
|
||||||
// Calculate left offset
|
// Calculate left offset
|
||||||
const offsetX = bounds.left + bounds.width + scrollLeft - 36
|
const offsetX = bounds.left + bounds.width + scrollLeft + 16
|
||||||
if (offsetX > sidebarWidth) {
|
if (offsetX > sidebarWidth) {
|
||||||
newOffsets.left = offsetX - sidebarWidth
|
newOffsets.left = offsetX - sidebarWidth
|
||||||
} else {
|
} else {
|
||||||
|
@ -79,19 +79,4 @@
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div::-webkit-scrollbar-track {
|
|
||||||
background: var(--background-alt);
|
|
||||||
}
|
|
||||||
|
|
||||||
div::-webkit-scrollbar {
|
|
||||||
width: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div::-webkit-scrollbar-thumb {
|
|
||||||
background-color: var(--grey-3);
|
|
||||||
border-radius: 20px;
|
|
||||||
border: 1px solid var(--background-alt);
|
|
||||||
border-width: 5px 5px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue