Remove duplicate store for right sidebar width, increase default size

This commit is contained in:
Tom Moor
2023-03-05 16:43:07 -05:00
parent ac3284986c
commit 69c7bf6100
4 changed files with 18 additions and 14 deletions

View File

@@ -98,7 +98,7 @@ class UiStore {
this.sidebarCollapsed = !!data.sidebarCollapsed;
this.sidebarWidth = data.sidebarWidth || defaultTheme.sidebarWidth;
this.sidebarRightWidth =
data.sidebarRightWidth || defaultTheme.sidebarWidth;
data.sidebarRightWidth || defaultTheme.sidebarRightWidth;
this.tocVisible = !!data.tocVisible;
this.theme = data.theme || Theme.System;
@@ -165,6 +165,11 @@ class UiStore {
this.sidebarWidth = width;
};
@action
setRightSidebarWidth = (width: number): void => {
this.sidebarRightWidth = width;
};
@action
collapseSidebar = () => {
this.sidebarCollapsed = true;