From 2c55109cb5fbfb1e5981a01774e90906b1d47d07 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Wed, 22 Oct 2025 11:55:32 +0200 Subject: [PATCH] Small sidebar fix --- src/components/app/AppLayout.tsx | 32 +++++++++++++++++++++++-------- src/components/app/SidebarDMs.tsx | 13 +------------ 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/components/app/AppLayout.tsx b/src/components/app/AppLayout.tsx index ec5797b..abed679 100644 --- a/src/components/app/AppLayout.tsx +++ b/src/components/app/AppLayout.tsx @@ -12,6 +12,7 @@ import { Server, Message } from "@/types/types"; import SidebarServers from "./SidebarServers"; import SidebarDMs from "./SidebarDMs"; import SidebarChannels from "./SidebarChannels"; +import DMItem from "./DMItem"; export default function AppLayout({ children, @@ -70,15 +71,30 @@ export default function AppLayout({ app.sidebarOpen && isMobile ? "w-5xl md:w-md" : "w-0 md:w-md" )} > - {/* Left column — servers */} - +
+ +
- {/* Right column — DMs or server channels */} - {server ? ( - - ) : ( - - )} +
+
+ {server ? ( + + ) : ( + + )} +
+ +
+ +
+
{app.sidebarOpen && isMobile ? ( diff --git a/src/components/app/SidebarDMs.tsx b/src/components/app/SidebarDMs.tsx index 9e88f46..c1be647 100644 --- a/src/components/app/SidebarDMs.tsx +++ b/src/components/app/SidebarDMs.tsx @@ -76,7 +76,7 @@ export default function SidebarDMs({ app }: { app: App }) {
- - ); }