mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix unstyled scrollbar
This commit is contained in:
parent
b973a5eace
commit
78a3c971ff
2 changed files with 9 additions and 6 deletions
|
@ -44,11 +44,6 @@ body {
|
|||
overflow-x: hidden;
|
||||
background-color: transparent !important;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
/* This keeps the scrollbar always present in all pages, so we avoid clipping while switching between pages
|
||||
that need the scrollbar and pages that don't.
|
||||
*/
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.mainAnimatedPage {
|
||||
|
@ -127,6 +122,10 @@ div[data-role=page] {
|
|||
padding-bottom: 4em;
|
||||
}
|
||||
|
||||
.force-scroll {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.hide-scroll {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,11 @@ import skinManager from 'skinManager';
|
|||
import events from 'events';
|
||||
|
||||
// Set the default theme when loading
|
||||
skinManager.setTheme(userSettings.theme());
|
||||
skinManager.setTheme(userSettings.theme())
|
||||
/* This keeps the scrollbar always present in all pages, so we avoid clipping while switching between pages
|
||||
that need the scrollbar and pages that don't.
|
||||
*/
|
||||
.then(() => document.body.classList.add('force-scroll'));
|
||||
|
||||
// Set the user's prefered theme when signing in
|
||||
events.on(window.connectionManager, 'localusersignedin', function (e, user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue