Small sidebar fix

This commit is contained in:
2025-10-26 20:33:47 +01:00
parent 1581938c64
commit 07ba104edd
2 changed files with 15 additions and 3 deletions
+3 -3
View File
@@ -41,7 +41,7 @@ export default function SidebarServers({ app }: { app: App }) {
};
return (
<div className="w-16 flex flex-col items-center gap-4 py-4 border-r h-full">
<div className="w-16 flex flex-col items-center gap-4 py-4 border-r h-full overflow-y-scroll no-scrollbar">
<Button
onClick={() => router.push(`/chat`)}
className="bg-transparent text-accent-foreground hover:text-accent"
@@ -50,9 +50,9 @@ export default function SidebarServers({ app }: { app: App }) {
</Button>
{Object.values(app.servers).map(
(srv) =>
(srv, i) =>
srv && (
<Link href={`/server/${srv.id}`} key={srv.id}>
<Link href={`/server/${srv.id}`} key={i}>
<ProfilePicture name={srv.name} url={srv.icon_url} />
</Link>
)