Rework discover-feed trending interstitial (#7314)

* Rework discover-feed trending interstitial to take one row

* Fix loading state

* Try putting it at the top

* Color consistency

* Tweak some spacing

* Show trending when progress guide is there
This commit is contained in:
Paul Frazee
2024-12-31 09:44:52 -08:00
committed by GitHub
parent c6d26a0a9c
commit 2dc6932f29
3 changed files with 71 additions and 89 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ export function useHeaderOffset() {
const tabBarPad = 10 + 10 + 3 // padding + border
const normalLineHeight = 20 // matches tab bar
const tabBarText = normalLineHeight * fontScale
return navBarHeight + tabBarPad + tabBarText
return navBarHeight + tabBarPad + tabBarText - 4 // for some reason, this calculation is wrong by 4 pixels, which we adjust
}