summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-02 23:38:04 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-02 23:38:04 +1100
commit65d05114085ccd6717c8c4805da85a5e2d80ecf3 (patch)
tree282fb6fdb3cca799512b30218fa3b8c45ed4981c /src/utils
parentlauncher: fix typeerror (diff)
downloadcaelestia-shell-65d05114085ccd6717c8c4805da85a5e2d80ecf3.tar.gz
caelestia-shell-65d05114085ccd6717c8c4805da85a5e2d80ecf3.tar.bz2
caelestia-shell-65d05114085ccd6717c8c4805da85a5e2d80ecf3.zip
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
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/strings.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/utils/strings.ts b/src/utils/strings.ts
index 4aaa916..4786c6b 100644
--- a/src/utils/strings.ts
+++ b/src/utils/strings.ts
@@ -1,5 +1,3 @@
-export const ellipsize = (str: string, len: number) => (str.length > len ? `${str.slice(0, len - 1)}…` : str);
-
export const basename = (path: string, stripExt = true) => {
const lastSlash = path.lastIndexOf("/");
const lastDot = path.lastIndexOf(".");