From 65d05114085ccd6717c8c4805da85a5e2d80ecf3 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 2 Apr 2025 23:38:04 +1100 Subject: bar: fix workspaces visual glitch Also use gtk truncate for active window and media playing For some reason, odd numbers of workspaces need the adjustment, but even don't --- scss/bar.scss | 4 ++-- src/modules/bar.tsx | 18 ++++++++++-------- src/utils/strings.ts | 2 -- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scss/bar.scss b/scss/bar.scss index ca292fa..b23bb5e 100644 --- a/scss/bar.scss +++ b/scss/bar.scss @@ -276,7 +276,7 @@ border-bottom-left-radius: lib.s($-rounding); } - .workspaces { + .workspaces.odd { margin-right: -1px; } @@ -300,7 +300,7 @@ padding-top: lib.s(15); } - .workspaces { + .workspaces.odd { margin-bottom: -1px; } diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index c5a4fbb..731e3e7 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -3,7 +3,6 @@ import type { Monitor } from "@/services/monitors"; import Players from "@/services/players"; import Updates from "@/services/updates"; import { getAppCategoryIcon } from "@/utils/icons"; -import { ellipsize } from "@/utils/strings"; import { bindCurrentTime, osIcon } from "@/utils/system"; import type { AstalWidget } from "@/utils/types"; import { setupCustomTooltip } from "@/utils/widgets"; @@ -146,12 +145,11 @@ const ActiveWindow = ({ monitor, ...props }: ModuleProps) => ( } />