Small sidebar fix
This commit is contained in:
@@ -173,3 +173,15 @@
|
|||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background-color: #4b5563;
|
background-color: #4b5563;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer utilities {
|
||||||
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||||
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
/* Hide scrollbar for IE, Edge and Firefox */
|
||||||
|
.no-scrollbar {
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -41,7 +41,7 @@ export default function SidebarServers({ app }: { app: App }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
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
|
<Button
|
||||||
onClick={() => router.push(`/chat`)}
|
onClick={() => router.push(`/chat`)}
|
||||||
className="bg-transparent text-accent-foreground hover:text-accent"
|
className="bg-transparent text-accent-foreground hover:text-accent"
|
||||||
@@ -50,9 +50,9 @@ export default function SidebarServers({ app }: { app: App }) {
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{Object.values(app.servers).map(
|
{Object.values(app.servers).map(
|
||||||
(srv) =>
|
(srv, i) =>
|
||||||
srv && (
|
srv && (
|
||||||
<Link href={`/server/${srv.id}`} key={srv.id}>
|
<Link href={`/server/${srv.id}`} key={i}>
|
||||||
<ProfilePicture name={srv.name} url={srv.icon_url} />
|
<ProfilePicture name={srv.name} url={srv.icon_url} />
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user