diff options
author | 2021-12-15 17:54:18 +0100 | |
---|---|---|
committer | 2021-12-15 17:54:18 +0100 | |
commit | a87c27f2e26223714dcca04031650adf6af61e96 (patch) | |
tree | d0e596f6952a68d34f4ea91b78082e5b45b560a3 | |
parent | Various appearance fixes (diff) | |
download | ferdium-app-a87c27f2e26223714dcca04031650adf6af61e96.tar.gz ferdium-app-a87c27f2e26223714dcca04031650adf6af61e96.tar.zst ferdium-app-a87c27f2e26223714dcca04031650adf6af61e96.zip |
Restore sidebarWidth in generateVerticalStyle
-rw-r--r-- | src/features/appearance/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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) { | |||
253 | document.head.append(link); | 253 | document.head.append(link); |
254 | } | 254 | } |
255 | const width = Number(widthStr); | 255 | const width = Number(widthStr); |
256 | const sidebarWidth = width - 4; | ||
256 | const verticalStyleOffset = 23; | 257 | const verticalStyleOffset = 23; |
257 | 258 | ||
258 | return ` | 259 | return ` |
@@ -271,7 +272,7 @@ function generateVerticalStyle(widthStr, alwaysShowWorkspaces) { | |||
271 | } | 272 | } |
272 | 273 | ||
273 | .workspaces-drawer { | 274 | .workspaces-drawer { |
274 | margin-top: -${0 - verticalStyleOffset - 1}px !important; | 275 | margin-top: -${sidebarWidth - verticalStyleOffset - 1}px !important; |
275 | } | 276 | } |
276 | 277 | ||
277 | .todos__todos-panel--expanded { | 278 | .todos__todos-panel--expanded { |