Better tablet layout (#7656)

* better tablet layout

* adjust left nav spacing

* add right nav to pwi

* clearer logic

* fix a couple screens that don't need the tablet layout

* fix horiz scroll bar

* fix double trending

* fix ts-ignore

* fix labeller screen

* don't offset things within dialogs

* fix load latest button (and add scale animation)

* center loader on home screen

* adjust break points

* adjust left nav spacing

* fix load latest btn (again)

* add lang select to right nav if left nav is minimal

* fix double scrollbar on tiny screens

* fix scrollbar

* fix type errors
This commit is contained in:
Samuel Newman
2025-02-25 09:20:37 -08:00
committed by GitHub
parent 0437838649
commit cc8369e868
17 changed files with 211 additions and 122 deletions
+4 -4
View File
@@ -16,9 +16,9 @@ import {
import {atoms as a, useTheme} from '#/alf'
import {AppLanguageDropdown} from '#/components/AppLanguageDropdown'
import {Button, ButtonText} from '#/components/Button'
import * as Layout from '#/components/Layout'
import {InlineLinkText} from '#/components/Link'
import {Text} from '#/components/Typography'
import {CenteredView} from '../util/Views'
export const SplashScreen = ({
onDismiss,
@@ -70,13 +70,13 @@ export const SplashScreen = ({
</Pressable>
)}
<CenteredView style={[a.h_full, a.flex_1]}>
<Layout.Center style={[a.h_full, a.flex_1]} ignoreTabletLayoutOffset>
<View
testID="noSessionView"
style={[
a.h_full,
a.justify_center,
// @ts-ignore web only
// @ts-expect-error web only
{paddingBottom: '20vh'},
isMobileWeb && a.pb_5xl,
t.atoms.border_contrast_medium,
@@ -135,7 +135,7 @@ export const SplashScreen = ({
</ErrorBoundary>
</View>
<Footer />
</CenteredView>
</Layout.Center>
<AppClipOverlay
visible={showClipOverlay}
setIsVisible={setShowClipOverlay}