From 71025c6ed062cacae69b09597aae6a4de393116a Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 9 Apr 2025 15:54:46 +1000
Subject: sidebar: news use monitor height

Use monitor height instead of absolute
---
 src/modules/sidebar/index.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/modules/sidebar/index.tsx')

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>
-- 
cgit v1.2.3-freya

