bar: fix vertical height

reduce max len of window title and media
This commit is contained in:
2 * r + 2 * t 2025-02-22 15:37:58 +11:00
parent c6dd4a4e97
commit b3ed94a1bb

View file

@ -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
})
}
/>