From 1e2b2df43727ac574fa0cecd9ce49a61dd6ebe8b Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Mon, 21 Apr 2025 01:59:33 +0000 Subject: fix(web): Fix sidebar lists getting opened on edit --- apps/web/components/dashboard/sidebar/AllLists.tsx | 5 ++- apps/web/components/shared/sidebar/SidebarItem.tsx | 36 ++++++++++------------ 2 files changed, 21 insertions(+), 20 deletions(-) (limited to 'apps/web/components') diff --git a/apps/web/components/dashboard/sidebar/AllLists.tsx b/apps/web/components/dashboard/sidebar/AllLists.tsx index 8296dafa..fff8d64d 100644 --- a/apps/web/components/dashboard/sidebar/AllLists.tsx +++ b/apps/web/components/dashboard/sidebar/AllLists.tsx @@ -47,12 +47,14 @@ export default function AllLists({ name={t("lists.all_lists")} path={`/dashboard/lists`} linkClassName="py-0.5" + className="px-0.5" /> ⭐️} name={t("lists.favourites")} path={`/dashboard/favourites`} linkClassName="py-0.5" + className="px-0.5" /> 0 && ( ) @@ -74,6 +76,7 @@ export default function AllLists({ } name={node.item.name} path={`/dashboard/lists/${node.item.id}`} + className="px-0.5" right={ { diff --git a/apps/web/components/shared/sidebar/SidebarItem.tsx b/apps/web/components/shared/sidebar/SidebarItem.tsx index c862cc83..cfbd7253 100644 --- a/apps/web/components/shared/sidebar/SidebarItem.tsx +++ b/apps/web/components/shared/sidebar/SidebarItem.tsx @@ -28,30 +28,28 @@ export default function SidebarItem({ return (
  • - {collapseButton} - -
    -
    - {logo} - - {name} - -
    - {right} -
    - +
    + {collapseButton} + + {logo} + + {name} + + +
    + {right}
  • ); } -- cgit v1.2.3-70-g09d2