bar: hide tray when no items
This commit is contained in:
parent
6fd9336522
commit
5823a43aaf
1 changed files with 5 additions and 1 deletions
|
|
@ -220,7 +220,11 @@ const TrayItem = (item: AstalTray.TrayItem) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const Tray = () => <box className="module tray">{bind(AstalTray.get_default(), "items").as(i => i.map(TrayItem))}</box>;
|
const Tray = () => (
|
||||||
|
<box className="module tray" visible={bind(AstalTray.get_default(), "items").as(i => i.length > 0)}>
|
||||||
|
{bind(AstalTray.get_default(), "items").as(i => i.map(TrayItem))}
|
||||||
|
</box>
|
||||||
|
);
|
||||||
|
|
||||||
const Network = () => (
|
const Network = () => (
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue