aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorLibravatar André Oliveira <oliveira.andrerodrigues95@gmail.com>2022-05-02 11:14:22 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-05-02 16:48:38 -0500
commit53ee5be4d2c6226a9ae299aceffe0f50c4f7d116 (patch)
tree28182876196fa44e14390820f74d3428221e338e /src/features
parentFeature: Hide sidebar buttons toggled behind a hamburger menu (#81) (diff)
downloadferdium-app-53ee5be4d2c6226a9ae299aceffe0f50c4f7d116.tar.gz
ferdium-app-53ee5be4d2c6226a9ae299aceffe0f50c4f7d116.tar.zst
ferdium-app-53ee5be4d2c6226a9ae299aceffe0f50c4f7d116.zip
Fix height of tab items in relation to width for Normal Sidebar
Diffstat (limited to 'src/features')
-rw-r--r--src/features/appearance/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/appearance/index.ts b/src/features/appearance/index.ts
index faf7ffd37..094d93dcc 100644
--- a/src/features/appearance/index.ts
+++ b/src/features/appearance/index.ts
@@ -129,7 +129,7 @@ function generateServiceRibbonWidthStyle(
129 let fontSize = 11; 129 let fontSize = 11;
130 let tabItemHeightBias = -5; 130 let tabItemHeightBias = -5;
131 let sidebarSizeBias = 22; 131 let sidebarSizeBias = 22;
132 const tabItemWidthBias = 2; 132 const tabItemWidthBias = 3;
133 133
134 switch (width) { 134 switch (width) {
135 case 35: 135 case 35:
@@ -223,7 +223,7 @@ function generateServiceRibbonWidthStyle(
223 } 223 }
224 .tab-item { 224 .tab-item {
225 width: ${width}px !important; 225 width: ${width}px !important;
226 height: min-content !important; 226 height: ${width - tabItemWidthBias}px !important;
227 } 227 }
228 .tab-item .tab-item__icon { 228 .tab-item .tab-item__icon {
229 width: ${minimumAdjustedIconSize}px !important; 229 width: ${minimumAdjustedIconSize}px !important;