From 7bf8cd4cf0fd277d7ec30c1ea6f3d83017fec160 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 19 Feb 2025 14:34:41 +1100
Subject: bar: fix being too tall when vertical

---
 src/modules/bar.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index e7d9138..709f948 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -151,7 +151,7 @@ const MediaPlaying = () => {
                     angle={config.vertical ? 270 : 0}
                     setup={self =>
                         players.hookLastPlayer(self, ["notify::title", "notify::artist"], () => {
-                            self.label = ellipsize(getLabel("No media")); // TODO: scroll text
+                            self.label = ellipsize(getLabel("No media"), config.vertical ? 30 : 40); // TODO: scroll text
                         })
                     }
                 />
-- 
cgit v1.2.3-freya

