fix: adjust width of DocumentsSidebar for better layout consistency; change from 480px to 380px in both docked and mobile views

This commit is contained in:
Anish Sarkar 2026-03-10 14:03:47 +05:30
parent 5ecf4e3e9d
commit ccde9d23f0

View file

@ -236,7 +236,7 @@ export function DocumentsSidebar({ open, onOpenChange, isDocked = false, onDocke
if (isDocked && open && !isMobile) {
return (
<aside
className="h-full w-[480px] shrink-0 bg-sidebar text-sidebar-foreground flex flex-col border-r"
className="h-full w-[380px] shrink-0 bg-sidebar text-sidebar-foreground flex flex-col border-r"
aria-label={t("title") || "Documents"}
>
{documentsContent}
@ -249,7 +249,7 @@ export function DocumentsSidebar({ open, onOpenChange, isDocked = false, onDocke
open={open}
onOpenChange={onOpenChange}
ariaLabel={t("title") || "Documents"}
width={isMobile ? undefined : 480}
width={isMobile ? undefined : 380}
>
{documentsContent}
</SidebarSlideOutPanel>