Fix web Home header (#7086)

* Fix header disappearing on web

* Make border nicer
This commit is contained in:
dan
2024-12-12 21:57:26 +00:00
committed by GitHub
parent 8a790cdd7f
commit add7a91d54
3 changed files with 8 additions and 14 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ export function useHeaderOffset() {
if (isDesktop || isTablet) {
return 0
}
const navBarHeight = 42
const tabBarPad = 10 + 10 + 6 // padding + arbitrary
const navBarHeight = 52
const tabBarPad = 10 + 10 + 3 // padding + border
const normalLineHeight = 20 // matches tab bar
const tabBarText = normalLineHeight * fontScale
return navBarHeight + tabBarPad + tabBarText