fix: Content jump when leaving edit mode

This commit is contained in:
Tom Moor
2021-01-22 23:58:34 -08:00
parent b3cd78c833
commit 4106f15450
3 changed files with 12 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ class UiStore {
@observable mobileSidebarVisible: boolean = false;
@observable sidebarWidth: number;
@observable sidebarCollapsed: boolean = false;
@observable sidebarIsResizing: boolean = false;
@observable toasts: Map<string, Toast> = new Map();
lastToastId: string;
@@ -97,6 +98,11 @@ class UiStore {
}
};
@action
setSidebarResizing = (sidebarIsResizing: boolean): void => {
this.sidebarIsResizing = sidebarIsResizing;
};
@action
setActiveCollection = (collection: Collection): void => {
this.activeCollectionId = collection.id;