mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Bar: ceil all floating margins and increase the exclusion zone by one extra pixel to avoid potential cut-off.
This commit is contained in:
+1
-1
@@ -419,7 +419,7 @@ Variants {
|
||||
let base = Style.marginM;
|
||||
if (Settings.data.bar.position === position) {
|
||||
const isVertical = position === "top" || position === "bottom";
|
||||
const floatExtra = 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) * Style.marginXL : 0);
|
||||
return Style.barHeight + base + floatExtra;
|
||||
}
|
||||
return base;
|
||||
|
||||
Reference in New Issue
Block a user