UI sizing fixes
parent
effe3d6b59
commit
44c85bbc56
|
@ -144,7 +144,7 @@ export const PostThreadItem = observer(function PostThreadItem({
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={[s.pl10, s.pr10, s.pb10]}>
|
<View style={[s.pl10, s.pr10, s.pb10]}>
|
||||||
<Text style={[styles.postText, s.f18, s['lh18-1.3']]}>
|
<Text style={[styles.postText, styles.postTextLarge]}>
|
||||||
{record.text}
|
{record.text}
|
||||||
</Text>
|
</Text>
|
||||||
{item._isHighlightedPost && hasEngagement ? (
|
{item._isHighlightedPost && hasEngagement ? (
|
||||||
|
@ -272,9 +272,16 @@ const styles = StyleSheet.create({
|
||||||
paddingRight: 5,
|
paddingRight: 5,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
paddingBottom: 5,
|
paddingBottom: 8,
|
||||||
fontFamily: 'Helvetica Neue',
|
fontFamily: 'Helvetica Neue',
|
||||||
},
|
},
|
||||||
|
postTextLarge: {
|
||||||
|
paddingLeft: 4,
|
||||||
|
paddingBottom: 20,
|
||||||
|
fontSize: 24,
|
||||||
|
lineHeight: 32,
|
||||||
|
fontWeight: '300',
|
||||||
|
},
|
||||||
expandedInfo: {
|
expandedInfo: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
padding: 10,
|
padding: 10,
|
||||||
|
|
|
@ -182,7 +182,7 @@ const styles = StyleSheet.create({
|
||||||
paddingRight: 5,
|
paddingRight: 5,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
paddingBottom: 5,
|
paddingBottom: 8,
|
||||||
},
|
},
|
||||||
ctrls: {
|
ctrls: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|
|
@ -191,7 +191,7 @@ const styles = StyleSheet.create({
|
||||||
paddingRight: 5,
|
paddingRight: 5,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
paddingBottom: 5,
|
paddingBottom: 8,
|
||||||
fontFamily: 'Helvetica Neue',
|
fontFamily: 'Helvetica Neue',
|
||||||
},
|
},
|
||||||
ctrls: {
|
ctrls: {
|
||||||
|
|
|
@ -16,7 +16,7 @@ export function FAB({icon, onPress}: {icon: IconProp; onPress: OnPress}) {
|
||||||
end={{x: 1, y: 1}}
|
end={{x: 1, y: 1}}
|
||||||
style={styles.inner}>
|
style={styles.inner}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
size={20}
|
size={24}
|
||||||
icon={icon}
|
icon={icon}
|
||||||
color={colors.white}
|
color={colors.white}
|
||||||
style={styles.icon}
|
style={styles.icon}
|
||||||
|
@ -32,17 +32,17 @@ const styles = StyleSheet.create({
|
||||||
zIndex: zIndex.FAB,
|
zIndex: zIndex.FAB,
|
||||||
right: 20,
|
right: 20,
|
||||||
bottom: 10,
|
bottom: 10,
|
||||||
width: 50,
|
width: 60,
|
||||||
height: 50,
|
height: 60,
|
||||||
borderRadius: 25,
|
borderRadius: 30,
|
||||||
shadowColor: '#000',
|
shadowColor: '#000',
|
||||||
shadowOpacity: 0.3,
|
shadowOpacity: 0.3,
|
||||||
shadowOffset: {width: 0, height: 1},
|
shadowOffset: {width: 0, height: 1},
|
||||||
},
|
},
|
||||||
inner: {
|
inner: {
|
||||||
width: 50,
|
width: 60,
|
||||||
height: 50,
|
height: 60,
|
||||||
borderRadius: 25,
|
borderRadius: 30,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
},
|
},
|
||||||
|
|
|
@ -87,7 +87,7 @@ const Btn = ({
|
||||||
return (
|
return (
|
||||||
<View style={styles.ctrl}>
|
<View style={styles.ctrl}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
size={18}
|
size={21}
|
||||||
style={[styles.ctrlIcon, styles.inactive]}
|
style={[styles.ctrlIcon, styles.inactive]}
|
||||||
icon={icon}
|
icon={icon}
|
||||||
/>
|
/>
|
||||||
|
@ -99,7 +99,7 @@ const Btn = ({
|
||||||
style={styles.ctrl}
|
style={styles.ctrl}
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onLongPress={onLongPress}>
|
onLongPress={onLongPress}>
|
||||||
<FontAwesomeIcon size={18} style={styles.ctrlIcon} icon={icon} />
|
<FontAwesomeIcon size={21} style={styles.ctrlIcon} icon={icon} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -331,19 +331,19 @@ const styles = StyleSheet.create({
|
||||||
paddingBottom: 5,
|
paddingBottom: 5,
|
||||||
},
|
},
|
||||||
avi: {
|
avi: {
|
||||||
width: 28,
|
width: 34,
|
||||||
height: 28,
|
height: 34,
|
||||||
marginRight: 8,
|
marginRight: 8,
|
||||||
borderRadius: 14,
|
borderRadius: 17,
|
||||||
},
|
},
|
||||||
location: {
|
location: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
paddingLeft: 10,
|
paddingLeft: 12,
|
||||||
paddingRight: 6,
|
paddingRight: 6,
|
||||||
paddingTop: 6,
|
paddingTop: 9,
|
||||||
paddingBottom: 6,
|
paddingBottom: 9,
|
||||||
backgroundColor: colors.gray1,
|
backgroundColor: colors.gray1,
|
||||||
// justifyContent: 'center',
|
// justifyContent: 'center',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue