diff --git a/src/App.tsx b/src/App.tsx
index 52d1655..542ba27 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -49,7 +49,7 @@ export default function App() {
minSize="4rem"
groupResizeBehavior="preserve-pixel-size"
>
-
+
diff --git a/src/components/sidebar/MainPageSidebar.tsx b/src/components/sidebar/MainPageSidebar.tsx
index 0b72932..f46aaaa 100644
--- a/src/components/sidebar/MainPageSidebar.tsx
+++ b/src/components/sidebar/MainPageSidebar.tsx
@@ -5,6 +5,7 @@ import { openUrl } from "@tauri-apps/plugin-opener";
import { Button } from "@/components/ui/button";
import { RefreshCw, Rss } from "lucide-react";
import { cn } from "@/lib/utils";
+import StatusCard from "../view/StatusCard";
function formatTime(publishedAt: number): string {
if (!publishedAt) return "";
@@ -73,7 +74,9 @@ function StaticFallback() {
);
}
-export default function MainPageSidebar(_props: {
+export default function MainPageSidebar({
+ appRef,
+}: {
appRef: React.RefObject
;
}) {
const [items, setItems] = useState(null);
@@ -98,58 +101,62 @@ export default function MainPageSidebar(_props: {
}, [load]);
return (
-
-
-
-
- Security News
-
-
-
+
+
+
+
+
+ Security News
+
+
+
-
- {loading && items === null && (
-
- Loading news…
-
- )}
+
+ {loading && items === null && (
+
+ Loading news…
+
+ )}
- {error && !loading && }
+ {error && !loading && }
- {items && (
-
- {items.map((item) => (
-
- ))}
-
- )}
-
+ {items && (
+
+ {items.map((item) => (
+
+ ))}
+
+ )}
+
+
+
+
);
}
diff --git a/src/components/sidebar/ServerSidebar.tsx b/src/components/sidebar/ServerSidebar.tsx
index 3b20c19..45e6f48 100644
--- a/src/components/sidebar/ServerSidebar.tsx
+++ b/src/components/sidebar/ServerSidebar.tsx
@@ -156,20 +156,20 @@ export default function ServerSidebar({
appRef: React.RefObject
;
}) {
return (
-
+
{appRef.current?.server?.meta && (
- <>
+
{appRef.current.server.meta.name}
-
)}