Skip to content

Commit b0dbbbf

Browse files
committed
improve tabbar ui
1 parent db0ace9 commit b0dbbbf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

devconnect-app/src/components/TabBar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export default function TabBar({ navItem, activeIndex, onTabClick }: TabBarProps
1212
const tabItems = navItem.tabItems || [];
1313
const bgColor = navItem.backgroundColor || '#e8f3fb';
1414
return (
15-
<div className="p-1 inline-flex justify-center items-center rounded" style={{ background: bgColor }}>
15+
<div
16+
className="mt-3 p-1 inline-flex justify-center items-center rounded"
17+
style={{ background: bgColor }}
18+
>
1619
{tabItems.map((item, idx) => (
1720
<button
1821
key={item.label}
@@ -31,7 +34,7 @@ export default function TabBar({ navItem, activeIndex, onTabClick }: TabBarProps
3134
>
3235
<div
3336
className={
34-
'text-center justify-center text-sm font-medium font-[\'Roboto\'] leading-tight ' +
37+
"text-center justify-center text-sm font-medium font-['Roboto'] leading-tight " +
3538
(idx === activeIndex ? 'text-[#232336]' : 'text-[#4b4b66]')
3639
}
3740
>

0 commit comments

Comments
 (0)