Backport pull request #5806 from jellyfin-web/release-10.9.z
Fix dashboard body class sometimes missing Original-merge: f3bb9f2eefadaba88ee3fe5770c8db06738202db Merged-by: thornbill <thornbill@users.noreply.github.com> Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -581,7 +581,6 @@ function updateMenuForPageType(isDashboardPage, isLibraryPage) {
|
||||
|
||||
if (isLibraryPage) {
|
||||
bodyClassList.add('libraryDocument');
|
||||
bodyClassList.remove('dashboardDocument');
|
||||
bodyClassList.remove('hideMainDrawer');
|
||||
|
||||
if (navDrawerInstance) {
|
||||
@@ -589,7 +588,6 @@ function updateMenuForPageType(isDashboardPage, isLibraryPage) {
|
||||
}
|
||||
} else if (isDashboardPage) {
|
||||
bodyClassList.remove('libraryDocument');
|
||||
bodyClassList.add('dashboardDocument');
|
||||
bodyClassList.remove('hideMainDrawer');
|
||||
|
||||
if (navDrawerInstance) {
|
||||
@@ -597,7 +595,6 @@ function updateMenuForPageType(isDashboardPage, isLibraryPage) {
|
||||
}
|
||||
} else {
|
||||
bodyClassList.remove('libraryDocument');
|
||||
bodyClassList.remove('dashboardDocument');
|
||||
bodyClassList.add('hideMainDrawer');
|
||||
|
||||
if (navDrawerInstance) {
|
||||
|
||||
Reference in New Issue
Block a user