Compare commits

..

No commits in common. "d319378ec8338fc5070d9dfbccf820d5eeb6dbe8" and "fdfc29ba5700262a6c7ac8ec378aeb561fa4b772" have entirely different histories.

1 changed files with 4 additions and 14 deletions

View File

@ -7,9 +7,8 @@ import { useAuthStore } from "@/store/auth.store";
export default function TabsLayout() { export default function TabsLayout() {
const insets = useSafeAreaInsets(); const insets = useSafeAreaInsets();
const isWeb = Platform.OS === "web"; const bottomPadding = insets.bottom > 0 ? insets.bottom : 8;
const bottomPadding = insets.bottom > 0 ? insets.bottom : (isWeb ? 8 : 8); const tabBarHeight = 52 + bottomPadding;
const tabBarHeight = (isWeb ? 66 : 60) + (insets.bottom > 0 ? insets.bottom : 0);
const { accessToken, logout } = useAuthStore(); const { accessToken, logout } = useAuthStore();
const isAuthenticated = !!accessToken; const isAuthenticated = !!accessToken;
@ -57,17 +56,8 @@ export default function TabsLayout() {
borderTopWidth: 1, borderTopWidth: 1,
borderTopColor: "#E5E7EB", borderTopColor: "#E5E7EB",
height: tabBarHeight, height: tabBarHeight,
paddingBottom: isWeb ? 8 : bottomPadding, paddingBottom: bottomPadding,
paddingTop: 6, paddingTop: 8,
},
tabBarLabelStyle: {
fontSize: 11,
fontWeight: "500",
marginTop: 2,
},
tabBarItemStyle: {
justifyContent: "center",
alignItems: "center",
}, },
}} }}
> >