Revert the fixed hack to hide horizontal spacing issue with sidebar because it breaks the animation on closed. Sigh.

This commit is contained in:
sabaimran
2025-01-19 18:11:53 -08:00
parent 0d38cc9753
commit dbce039033

View File

@@ -192,7 +192,7 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) {
className={`ml-auto opacity-30 rounded-lg p-2 transition-all transform duration-300 ease-in-out className={`ml-auto opacity-30 rounded-lg p-2 transition-all transform duration-300 ease-in-out
${props.isOpen ${props.isOpen
? "translate-x-0 opacity-100 w-[300px] relative" ? "translate-x-0 opacity-100 w-[300px] relative"
: "translate-x-full opacity-0 w-0 p-0 m-0 fixed"} : "translate-x-full opacity-0 w-0 p-0 m-0"}
`} `}
variant="floating"> variant="floating">
<SidebarContent> <SidebarContent>