bar: fix vertical height
reduce max len of window title and media
This commit is contained in:
parent
c6dd4a4e97
commit
b3ed94a1bb
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ const ActiveWindow = () => (
|
||||||
hookFocusedClientProp(
|
hookFocusedClientProp(
|
||||||
self,
|
self,
|
||||||
"title",
|
"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}
|
angle={config.vertical ? 270 : 0}
|
||||||
setup={self =>
|
setup={self =>
|
||||||
players.hookLastPlayer(self, ["notify::title", "notify::artist"], () => {
|
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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue