From 61e034adf8bc2ef1e395b2d75df4cfc1ce985c2c Mon Sep 17 00:00:00 2001 From: Ian Krieger <48930920+IanKrieger@users.noreply.github.com> Date: Thu, 5 Oct 2023 08:35:20 -0400 Subject: [PATCH] fix: pin settings to bottom bar (#927) * fix: pin settings to bottom bar * fix: smaller icons, up ad set limit --- src/components/Drawer/MiniSideBar.tsx | 59 +++++++++++-------- .../advanced/components/adSet/NewAdSet.tsx | 2 +- 2 files changed, 36 insertions(+), 25 deletions(-) diff --git a/src/components/Drawer/MiniSideBar.tsx b/src/components/Drawer/MiniSideBar.tsx index 3e348aa7..0f65225e 100644 --- a/src/components/Drawer/MiniSideBar.tsx +++ b/src/components/Drawer/MiniSideBar.tsx @@ -31,7 +31,7 @@ type RouteOption = { onClick?: (event: MouseEvent) => void; }; -const drawerWidth = 100; +const drawerWidth = 85; export default function MiniSideBar({ children }: PropsWithChildren) { const { advertiser } = useAdvertiser(); const dashboardRoutes: RouteOption[] = [ @@ -104,7 +104,7 @@ export default function MiniSideBar({ children }: PropsWithChildren) { ]; return ( - + - - {dashboardRoutes.map((dr) => ( - - ))} - - {settingsRoutes.map((sr) => ( - - ))} - - + + + {dashboardRoutes.map((dr) => ( + + ))} + + + + {settingsRoutes.map((sr) => ( + + ))} + + + {children} @@ -160,7 +169,9 @@ const ItemBox = (props: RouteOption) => { > {props.icon} - {props.label} + + {props.label} + ); diff --git a/src/user/views/adsManager/views/advanced/components/adSet/NewAdSet.tsx b/src/user/views/adsManager/views/advanced/components/adSet/NewAdSet.tsx index 793ea6c5..e31a8b23 100644 --- a/src/user/views/adsManager/views/advanced/components/adSet/NewAdSet.tsx +++ b/src/user/views/adsManager/views/advanced/components/adSet/NewAdSet.tsx @@ -74,7 +74,7 @@ export function NewAdSet() { )} ))} - {values.adSets.length <= 4 && ( + {values.adSets.length <= 19 && (