diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-15 10:15:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 10:15:30 -0700 |
commit | 91fadadb5848404bc47b69879bbc38a9011a0c62 (patch) | |
tree | 57f6b085b2a81bb33441c7107bd02b89187aec8e /src/lib/styles.ts | |
parent | a79dcd3d3890b2b705cb1e687cf0f31e109fbf74 (diff) | |
download | voidsky-91fadadb5848404bc47b69879bbc38a9011a0c62.tar.zst |
* Fix web home feed sizing (close #432) * Fix lint * Fix positioning of profile not found error * Fix load latest on mobile * Fix overflow issues on mobile web (visible in postthread) * Fix bottom pad on mobile web * Remove old comment
Diffstat (limited to 'src/lib/styles.ts')
-rw-r--r-- | src/lib/styles.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/styles.ts b/src/lib/styles.ts index 409c77548..37d169679 100644 --- a/src/lib/styles.ts +++ b/src/lib/styles.ts @@ -1,5 +1,6 @@ import {StyleProp, StyleSheet, TextStyle} from 'react-native' import {Theme, TypographyVariant} from './ThemeContext' +import {isMobileWeb} from 'platform/detection' // 1 is lightest, 2 is light, 3 is mid, 4 is dark, 5 is darkest export const colors = { @@ -162,7 +163,7 @@ export const s = StyleSheet.create({ // dimensions w100pct: {width: '100%'}, h100pct: {height: '100%'}, - hContentRegion: {height: '100%'}, + hContentRegion: isMobileWeb ? {flex: 1} : {height: '100%'}, // text align textLeft: {textAlign: 'left'}, |