1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00

Fix component scroll offsets not working

This commit is contained in:
Andrew Kingston 2023-08-22 16:45:37 +01:00
parent eba2fb0f13
commit a07f343f83

View file

@ -16,7 +16,7 @@
let newOffsets = {}
// Calculate left offset
const offsetX = bounds.left + bounds.width + scrollLeft - 36
const offsetX = bounds.left + bounds.width + scrollLeft + 16
if (offsetX > sidebarWidth) {
newOffsets.left = offsetX - sidebarWidth
} else {
@ -79,19 +79,4 @@
overflow: auto;
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>