diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 15:54:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 15:54:46 +1000 |
| commit | 71025c6ed062cacae69b09597aae6a4de393116a (patch) | |
| tree | 983471bb02661bcf0a38113f8b38ceb9c2ad5894 /src/modules/sidebar/index.tsx | |
| parent | news: fix news other than google news (diff) | |
| download | caelestia-shell-71025c6ed062cacae69b09597aae6a4de393116a.tar.gz caelestia-shell-71025c6ed062cacae69b09597aae6a4de393116a.tar.bz2 caelestia-shell-71025c6ed062cacae69b09597aae6a4de393116a.zip | |
sidebar: news use monitor height
Use monitor height instead of absolute
Diffstat (limited to 'src/modules/sidebar/index.tsx')
| -rw-r--r-- | src/modules/sidebar/index.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/sidebar/index.tsx b/src/modules/sidebar/index.tsx index 9d197cd..7570283 100644 --- a/src/modules/sidebar/index.tsx +++ b/src/modules/sidebar/index.tsx @@ -33,12 +33,12 @@ export const awaitSidebar = (monitor: Monitor) => idle(awaitSidebar); }); -const getPane = (name: PaneName) => { +const getPane = (monitor: Monitor, name: PaneName) => { if (name === "dashboard") return <Dashboard />; if (name === "audio") return <Audio />; if (name === "connectivity") return <Connectivity />; - if (name === "packages") return <Packages />; - if (name === "alerts") return <Alerts />; + if (name === "packages") return <Packages monitor={monitor} />; + if (name === "alerts") return <Alerts monitor={monitor} />; return <Time />; }; @@ -76,7 +76,7 @@ export default class SideBar extends Widget.Window { transitionDuration={200} shown={bind(this.shown)} > - {paneNames.map(getPane)} + {paneNames.map(n => getPane(monitor, n))} </stack> </box> </eventbox> |