mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge pull request #1305 from anthonyhab/feat/bar-margin-percentage-to-pixel
feat: convert bar margins from percentages to pixels
This commit is contained in:
+1
-1
@@ -427,7 +427,7 @@ Variants {
|
||||
let base = Style.marginM;
|
||||
if (Settings.data.bar.position === position) {
|
||||
const isVertical = position === "top" || position === "bottom";
|
||||
const floatExtra = Math.ceil(Settings.data.bar.floating ? (isVertical ? Settings.data.bar.marginVertical : Settings.data.bar.marginHorizontal) * Style.marginXL : 0);
|
||||
const floatExtra = Math.ceil(Settings.data.bar.floating ? (isVertical ? Settings.data.bar.marginVertical : Settings.data.bar.marginHorizontal) : 0);
|
||||
return Style.barHeight + base + floatExtra;
|
||||
}
|
||||
return base;
|
||||
|
||||
Reference in New Issue
Block a user