use self_end instead of margin: auto

This commit is contained in:
Hailey
2024-05-02 09:20:39 -07:00
parent 17042f523c
commit f46049dac9
+6 -1
View File
@@ -57,7 +57,12 @@ export function MessageItem({
return (
<View
style={{maxWidth: '65%', marginLeft: isFromSelf ? 'auto' : undefined}}>
style={[
{
maxWidth: '65%',
},
isFromSelf ? a.self_end : a.self_start,
]}>
<GrowWrapper onOpenMenu={onOpenMenu}>
<View
style={[