Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

sidebar scrolling issue

Aashish-Upadhyay-101042037c4fb6c
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 6212979f..cffa2a5f 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -259,13 +259,13 @@ export default function Sidebar() {
)}
<span className="flex items-center w-full justify-between">
<span className="sr-only">Your profile</span>
- <span aria-hidden="true">
+ <span aria-hidden="true" className="line-clamp-2">
{session?.user?.name
? session?.user?.name
: session?.user?.email?.split("@")[0]}
</span>
<ChevronUp
- className="ml-2 h-5 w-5 text-muted-foreground"
+ className="ml-2 h-5 w-5 text-muted-foreground shrink-0"
aria-hidden="true"
/>
</span>
diff --git a/components/theme-toggle.tsx b/components/theme-toggle.tsx
index 77987d66..5a298416 100644
--- a/components/theme-toggle.tsx
+++ b/components/theme-toggle.tsx
@@ -18,7 +18,7 @@ export function ModeToggle() {
return (
<DropdownMenu>
- <DropdownMenuTrigger asChild>
+ <DropdownMenuTrigger asChild className="shrink-0">
<Button variant="outline" size="icon">
<Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />