···11import React from 'react'
22import {StyleSheet, TouchableOpacity, View} from 'react-native'
33import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
44+import Animated from 'react-native-reanimated'
55+import {useMediaQuery} from 'react-responsive'
46import {usePalette} from 'lib/hooks/usePalette'
57import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
68import {colors} from 'lib/styles'
79import {HITSLOP_20} from 'lib/constants'
810import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode'
99-import Animated from 'react-native-reanimated'
1011const AnimatedTouchableOpacity =
1112 Animated.createAnimatedComponent(TouchableOpacity)
1213import {isWeb} from 'platform/detection'
···2627 const {isDesktop, isTablet, isMobile, isTabletOrMobile} = useWebMediaQueries()
2728 const {fabMinimalShellTransform} = useMinimalShellMode()
28293030+ // move button inline if it starts overlapping the left nav
3131+ const isTallViewport = useMediaQuery({minHeight: 700})
3232+2933 // Adjust height of the fab if we have a session only on mobile web. If we don't have a session, we want to adjust
3034 // it on both tablet and mobile since we are showing the bottom bar (see createNativeStackNavigatorWithAuth)
3135 const showBottomBar = hasSession ? isMobile : isTabletOrMobile
···3438 <AnimatedTouchableOpacity
3539 style={[
3640 styles.loadLatest,
3737- isDesktop && styles.loadLatestDesktop,
3838- isTablet && styles.loadLatestTablet,
4141+ isDesktop &&
4242+ (isTallViewport
4343+ ? styles.loadLatestOutOfLine
4444+ : styles.loadLatestInline),
4545+ isTablet && styles.loadLatestInline,
3946 pal.borderDark,
4047 pal.view,
4148 showBottomBar && fabMinimalShellTransform,
···6572 alignItems: 'center',
6673 justifyContent: 'center',
6774 },
6868- loadLatestTablet: {
7575+ loadLatestInline: {
6976 // @ts-ignore web only
7077 left: 'calc(50vw - 282px)',
7178 },
7272- loadLatestDesktop: {
7979+ loadLatestOutOfLine: {
7380 // @ts-ignore web only
7481 left: 'calc(50vw - 382px)',
7582 },