diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 15:37:58 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 15:37:58 +1100 |
| commit | b3ed94a1bb5a2e05f28ca41abf824784f086b353 (patch) | |
| tree | 0417dfa4a880590d7346189e2118e021707f04c4 /src | |
| parent | use state (diff) | |
| download | caelestia-shell-b3ed94a1bb5a2e05f28ca41abf824784f086b353.tar.gz caelestia-shell-b3ed94a1bb5a2e05f28ca41abf824784f086b353.tar.bz2 caelestia-shell-b3ed94a1bb5a2e05f28ca41abf824784f086b353.zip | |
bar: fix vertical height
reduce max len of window title and media
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/bar.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 }) } /> |