fixing blank screen when Hide Navigation by Default was set with mobile width
This commit is contained in:
parent
9e7cd4b627
commit
1c592ec652
1 changed files with 5 additions and 1 deletions
|
@ -37,10 +37,14 @@ function Client() {
|
||||||
function onRoomSelected() {
|
function onRoomSelected() {
|
||||||
navWrapperRef.current?.classList.add(classNameHidden);
|
navWrapperRef.current?.classList.add(classNameHidden);
|
||||||
roomWrapperRef.current?.classList.remove(classNameHidden);
|
roomWrapperRef.current?.classList.remove(classNameHidden);
|
||||||
|
if (settings.hideNavigation) {
|
||||||
selectRoom(navigation.selectedRoomId);
|
selectRoom(navigation.selectedRoomId);
|
||||||
|
navWrapperRef.current?.classList.add(toggleHidden);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function onNavigationSelected() {
|
function onNavigationSelected() {
|
||||||
navWrapperRef.current?.classList.remove(classNameHidden);
|
navWrapperRef.current?.classList.remove(classNameHidden);
|
||||||
|
navWrapperRef.current?.classList.remove(toggleHidden);
|
||||||
roomWrapperRef.current?.classList.add(classNameHidden);
|
roomWrapperRef.current?.classList.add(classNameHidden);
|
||||||
}
|
}
|
||||||
function onNavigationToggled() {
|
function onNavigationToggled() {
|
||||||
|
|
Loading…
Reference in a new issue