Improved nav

This commit is contained in:
2025-12-10 22:16:26 +01:00
parent e585aa9458
commit 31bd4f32f8
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -21,6 +21,11 @@ export function ChannelItem({ channel, app }: { channel: Channel; app: App }) {
<Card
className="p-2 flex flex-row px-3 items-center gap-2 cursor-pointer hover:bg-accent"
onClick={() => {
window.history.replaceState(
null,
"",
`/server/${app.server?.id}?ch=${channel.id}`
);
app.setCurrentChannel(channel);
app.setSidebarOpen(false);
}}