adjust styles
This commit is contained in:
@@ -65,6 +65,8 @@ export function MessageItem({
|
|||||||
}, [control, playHaptic])
|
}, [control, playHaptic])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<View
|
||||||
|
style={{maxWidth: '65%', marginLeft: isFromSelf ? 'auto' : undefined}}>
|
||||||
<GrowWrapper onOpenMenu={onOpenMenu} ref={itemRef}>
|
<GrowWrapper onOpenMenu={onOpenMenu} ref={itemRef}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@@ -72,9 +74,7 @@ export function MessageItem({
|
|||||||
a.px_lg,
|
a.px_lg,
|
||||||
a.my_2xs,
|
a.my_2xs,
|
||||||
a.rounded_md,
|
a.rounded_md,
|
||||||
isFromSelf ? a.self_end : a.self_start,
|
|
||||||
{
|
{
|
||||||
maxWidth: '65%',
|
|
||||||
backgroundColor: isFromSelf
|
backgroundColor: isFromSelf
|
||||||
? t.palette.primary_500
|
? t.palette.primary_500
|
||||||
: t.palette.contrast_50,
|
: t.palette.contrast_50,
|
||||||
@@ -104,6 +104,7 @@ export function MessageItem({
|
|||||||
control={control}
|
control={control}
|
||||||
/>
|
/>
|
||||||
</GrowWrapper>
|
</GrowWrapper>
|
||||||
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user