mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #1903 from dmitrylyzo/return-of-the-scrollbar
Return permanent scrollbar
This commit is contained in:
commit
f3d1b77058
10 changed files with 49 additions and 31 deletions
|
@ -5,7 +5,11 @@ import { Events } from 'jellyfin-apiclient';
|
|||
import ServerConnections from '../components/ServerConnections';
|
||||
|
||||
// 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 saved theme once a user authenticates
|
||||
Events.on(ServerConnections, 'localusersignedin', function (e, user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue