Skip to content

Commit

Permalink
Fix scroll in AppBar
Browse files Browse the repository at this point in the history
  • Loading branch information
0140454 committed Sep 24, 2024
1 parent 7d9405d commit 15dbcc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,6 @@ export default defineComponent({
const redrawScrollbar = () => {
document.documentElement.className = `v-theme--${theme.global.name.value}`
// force to redraw scrollbar
document.documentElement.style.overflowY = 'hidden'
document.documentElement.clientHeight.toString()
document.documentElement.style.overflowY = 'scroll'
}
watch(theme.global.name, redrawScrollbar, { immediate: true })
Expand Down Expand Up @@ -550,7 +546,7 @@ export default defineComponent({
}
const onScrollAppBar = (event: WheelEvent) => {
appBar.value!.$el.scrollLeft += event.deltaY
appBar.value!.$el.children[0].scrollLeft += event.deltaY
}
const onRenderRequested = () => {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/hackbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ body {

header {
overflow-x: auto !important;

.v-toolbar__content {
overflow: auto;
}
}

.ellipsis {
Expand Down

0 comments on commit 15dbcc2

Please sign in to comment.