From b3ed94a1bb5a2e05f28ca41abf824784f086b353 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 15:37:58 +1100 Subject: bar: fix vertical height reduce max len of window title and media --- src/modules/bar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index 3f3751c..cf3ce5e 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -114,7 +114,7 @@ const ActiveWindow = () => ( hookFocusedClientProp( self, "title", - c => (self.label = c?.title ? ellipsize(c.title, config.vertical ? 30 : 40) : "Desktop") + c => (self.label = c?.title ? ellipsize(c.title, config.vertical ? 25 : 40) : "Desktop") ) } /> @@ -158,7 +158,7 @@ const MediaPlaying = () => { angle={config.vertical ? 270 : 0} setup={self => players.hookLastPlayer(self, ["notify::title", "notify::artist"], () => { - self.label = ellipsize(getLabel("No media"), config.vertical ? 30 : 40); // TODO: scroll text + self.label = ellipsize(getLabel("No media"), config.vertical ? 25 : 40); // TODO: scroll text when playing or hover }) } /> -- cgit v1.2.3-freya