diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-12-31 09:44:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-31 09:44:52 -0800 |
commit | 2dc6932f298ce00bc83a66b7db0539eb7798e030 (patch) | |
tree | 4a21ec3237afb1c4123e5ed155869c92ba906369 /src/components/hooks | |
parent | c6d26a0a9c6606cccaee38adb535be257f19809d (diff) | |
download | voidsky-2dc6932f298ce00bc83a66b7db0539eb7798e030.tar.zst |
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
Diffstat (limited to 'src/components/hooks')
-rw-r--r-- | src/components/hooks/useHeaderOffset.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/hooks/useHeaderOffset.ts b/src/components/hooks/useHeaderOffset.ts index c9987df77..2d18fb99b 100644 --- a/src/components/hooks/useHeaderOffset.ts +++ b/src/components/hooks/useHeaderOffset.ts @@ -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 } |