Fix load state jumps
This commit is contained in:
@@ -41,15 +41,9 @@ export function MessageProfileButton({
|
|||||||
a.align_center,
|
a.align_center,
|
||||||
t.atoms.bg_contrast_25,
|
t.atoms.bg_contrast_25,
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
{width: 36, height: 36},
|
{width: 34, height: 34},
|
||||||
]}>
|
]}>
|
||||||
<Message
|
<Message style={[t.atoms.text, {opacity: 0.3}]} size="md" />
|
||||||
style={[
|
|
||||||
t.atoms.text,
|
|
||||||
{marginLeft: 1, marginBottom: 1, opacity: 0.3},
|
|
||||||
]}
|
|
||||||
size="md"
|
|
||||||
/>
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -150,6 +150,9 @@ let ProfileHeaderStandard = ({
|
|||||||
style={[a.px_lg, a.pt_md, a.pb_sm, a.overflow_hidden]}
|
style={[a.px_lg, a.pt_md, a.pb_sm, a.overflow_hidden]}
|
||||||
pointerEvents={isIOS ? 'auto' : 'box-none'}>
|
pointerEvents={isIOS ? 'auto' : 'box-none'}>
|
||||||
<View
|
<View
|
||||||
|
onLayout={e => {
|
||||||
|
console.log('height', e.nativeEvent.layout.height)
|
||||||
|
}}
|
||||||
style={[
|
style={[
|
||||||
{paddingLeft: 90},
|
{paddingLeft: 90},
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ let ProfileHeaderLoading = (_props: {}): React.ReactNode => {
|
|||||||
</View>
|
</View>
|
||||||
<View style={styles.content}>
|
<View style={styles.content}>
|
||||||
<View style={[styles.buttonsLine]}>
|
<View style={[styles.buttonsLine]}>
|
||||||
<LoadingPlaceholder width={167} height={36} style={styles.br50} />
|
<LoadingPlaceholder width={120} height={34} style={styles.br50} />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -69,13 +69,12 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
paddingTop: 12,
|
paddingTop: 12,
|
||||||
paddingHorizontal: 14,
|
paddingHorizontal: 16,
|
||||||
paddingBottom: 4,
|
paddingBottom: 8,
|
||||||
},
|
},
|
||||||
buttonsLine: {
|
buttonsLine: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
marginBottom: 12,
|
|
||||||
},
|
},
|
||||||
br45: {borderRadius: 45},
|
br45: {borderRadius: 45},
|
||||||
br50: {borderRadius: 50},
|
br50: {borderRadius: 50},
|
||||||
|
|||||||
Reference in New Issue
Block a user