From da4f0386691945ce94fea533a7b981df76019f0b Mon Sep 17 00:00:00 2001 From: ameer2468 <33054370+ameer2468@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:19:40 +0300 Subject: [PATCH] Mob: better visually width fitting for categories (#2114) * Visually width fitting for categories * remove padding --- apps/mobile/src/components/overview/Categories.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/components/overview/Categories.tsx b/apps/mobile/src/components/overview/Categories.tsx index fd9a6b642..502e7cc7e 100644 --- a/apps/mobile/src/components/overview/Categories.tsx +++ b/apps/mobile/src/components/overview/Categories.tsx @@ -24,7 +24,7 @@ const Categories = ({ kinds }: Props) => { data={kinds.data?.statistics ?.sort((a, b) => b.count - a.count) .filter((i) => i.kind !== 0)} - contentContainerStyle={tw`pl-7 pr-14`} + contentContainerStyle={tw`pl-7`} numColumns={Math.ceil(Number(kinds.data?.statistics.length ?? 0) / 2)} key={kinds.data?.statistics ? 'kinds' : '_'} //needed to update numColumns when data is available keyExtractor={(item) => item.name} @@ -43,7 +43,7 @@ const Categories = ({ kinds }: Props) => { break; } return ( - + { //TODO: implement }} > - + {name}