[WEB-2173] fix: app sidebar spacing and build error (#5300)

* fix: app sidebar spacing

* fix: build error
This commit is contained in:
Anmol Singh Bhatia 2024-08-05 15:13:51 +05:30 committed by GitHub
parent f9e7a5826b
commit 21343034c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 12 deletions

View file

@ -306,7 +306,12 @@ export const FavoriteFolder: React.FC<Props> = (props) => {
leaveFrom="transform scale-100 opacity-100"
leaveTo="transform scale-95 opacity-0"
>
<Disclosure.Panel as="div" className="flex flex-col gap-0.5 mt-1 px-2">
<Disclosure.Panel
as="div"
className={cn("flex flex-col gap-0.5 mt-1", {
"px-2": !isSidebarCollapsed,
})}
>
{favorite.children.map((child) => (
<FavoriteItem
key={child.id}