Skip to content

Commit

Permalink
Make border nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 12, 2024
1 parent a80955a commit d34fa42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/hooks/useHeaderOffset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/view/com/pager/TabBar.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const mobileStyles = StyleSheet.create({
textAlign: 'center',
minWidth: 45,
paddingBottom: 10,
borderBottomWidth: 2,
borderBottomWidth: 3,
borderBottomColor: 'transparent',
},
outerBottomBorder: {
Expand Down

0 comments on commit d34fa42

Please sign in to comment.