From a87c27f2e26223714dcca04031650adf6af61e96 Mon Sep 17 00:00:00 2001 From: kytwb Date: Wed, 15 Dec 2021 17:54:18 +0100 Subject: Restore sidebarWidth in generateVerticalStyle --- src/features/appearance/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/features/appearance') diff --git a/src/features/appearance/index.ts b/src/features/appearance/index.ts index 4323fa7cc..122fa2411 100644 --- a/src/features/appearance/index.ts +++ b/src/features/appearance/index.ts @@ -253,6 +253,7 @@ function generateVerticalStyle(widthStr, alwaysShowWorkspaces) { document.head.append(link); } const width = Number(widthStr); + const sidebarWidth = width - 4; const verticalStyleOffset = 23; return ` @@ -271,7 +272,7 @@ function generateVerticalStyle(widthStr, alwaysShowWorkspaces) { } .workspaces-drawer { - margin-top: -${0 - verticalStyleOffset - 1}px !important; + margin-top: -${sidebarWidth - verticalStyleOffset - 1}px !important; } .todos__todos-panel--expanded { -- cgit v1.2.3-54-g00ecf