Fix load state jumps

This commit is contained in:
Eric Bailey
2024-10-03 10:07:22 -05:00
parent e58cd68d6e
commit ca447c615b
3 changed files with 8 additions and 12 deletions
+2 -8
View File
@@ -41,15 +41,9 @@ export function MessageProfileButton({
a.align_center,
t.atoms.bg_contrast_25,
a.rounded_full,
{width: 36, height: 36},
{width: 34, height: 34},
]}>
<Message
style={[
t.atoms.text,
{marginLeft: 1, marginBottom: 1, opacity: 0.3},
]}
size="md"
/>
<Message style={[t.atoms.text, {opacity: 0.3}]} size="md" />
</View>
)
} else {
@@ -150,6 +150,9 @@ let ProfileHeaderStandard = ({
style={[a.px_lg, a.pt_md, a.pb_sm, a.overflow_hidden]}
pointerEvents={isIOS ? 'auto' : 'box-none'}>
<View
onLayout={e => {
console.log('height', e.nativeEvent.layout.height)
}}
style={[
{paddingLeft: 90},
a.flex_row,
+3 -4
View File
@@ -27,7 +27,7 @@ let ProfileHeaderLoading = (_props: {}): React.ReactNode => {
</View>
<View style={styles.content}>
<View style={[styles.buttonsLine]}>
<LoadingPlaceholder width={167} height={36} style={styles.br50} />
<LoadingPlaceholder width={120} height={34} style={styles.br50} />
</View>
</View>
</View>
@@ -69,13 +69,12 @@ const styles = StyleSheet.create({
},
content: {
paddingTop: 12,
paddingHorizontal: 14,
paddingBottom: 4,
paddingHorizontal: 16,
paddingBottom: 8,
},
buttonsLine: {
flexDirection: 'row',
marginLeft: 'auto',
marginBottom: 12,
},
br45: {borderRadius: 45},
br50: {borderRadius: 50},