Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/webui/src/client/styles/prompter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/* Pretty Modern Browsers */ url('../../fonts/Overpass/Overpass-Regular.ttf') format('truetype'); /* Safari, Android, iOS */
}

body.prompter-scrollbar {
.prompter-scrollbar {
&::-webkit-scrollbar {
width: 20px;
height: 20px;
Expand Down
4 changes: 2 additions & 2 deletions packages/webui/src/client/styles/rundownView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ $break-width: 35rem;
}
}

body.vertical-overflow-only {
.vertical-overflow-only {
overflow-x: hidden;
overflow-y: auto;
}

body.no-overflow {
.no-overflow {
overflow-x: hidden;
overflow-y: hidden;
}
Expand Down
10 changes: 4 additions & 6 deletions packages/webui/src/client/ui/Prompter/PrompterView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ export class PrompterViewContent extends React.Component<Translated<IProps & ITr
themeColor.setAttribute('content', '#000000')
}

document.body.classList.add(
'dark',
'xdark',
document.body.classList.add('dark', 'xdark')
document.documentElement.classList.add(
'prompter-scrollbar',
this.configOptions.showScroll ? 'vertical-overflow-only' : 'no-overflow'
)
Expand All @@ -266,9 +265,8 @@ export class PrompterViewContent extends React.Component<Translated<IProps & ITr
themeColor.setAttribute('content', themeColor.getAttribute('data-content') || '#ffffff')
}

document.body.classList.remove(
'dark',
'xdark',
document.body.classList.remove('dark', 'xdark')
document.documentElement.classList.remove(
'prompter-scrollbar',
this.configOptions.showScroll ? 'vertical-overflow-only' : 'no-overflow'
)
Expand Down
Loading