From ccceb5840c253aa46e3029ebd57d83a70b740908 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Wed, 20 Aug 2025 12:42:29 +0200 Subject: [PATCH] fixed sidebar display bug --- frontend/src/components/Object.tsx | 2 +- frontend/src/components/Sidebar.tsx | 50 +++++++++++++---------------- 2 files changed, 23 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/Object.tsx b/frontend/src/components/Object.tsx index 339612f..a2e8cf2 100644 --- a/frontend/src/components/Object.tsx +++ b/frontend/src/components/Object.tsx @@ -8,7 +8,7 @@ type ObjectProps = { const Object: React.FC = ({ title, description }) => { return (
-

{title}

+

{title}

{description}

); diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 2d0c77b..be15d9e 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -1,5 +1,6 @@ import React, { useEffect, useState } from "react"; import Object from "./Object"; +import { MonitorSmartphone } from "lucide-react"; import { ALL_ITEMS_UPDATED_EVENT } from "../utils/fetchData"; const Sidebar: React.FC = () => { @@ -21,39 +22,28 @@ const Sidebar: React.FC = () => { const sorted = [...items].sort((a, b) => Number(a.inSafe) - Number(b.inSafe)); return ( -