fix bg color (#8102)
This commit is contained in:
@@ -53,15 +53,17 @@ export function EmojiReactionPicker({
|
|||||||
|
|
||||||
const limitReacted = hasReachedReactionLimit(message, currentAccount?.did)
|
const limitReacted = hasReachedReactionLimit(message, currentAccount?.did)
|
||||||
|
|
||||||
|
const bgColor = t.scheme === 'light' ? t.atoms.bg : t.atoms.bg_contrast_25
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
onLayout={evt => setLayout(evt.nativeEvent.layout)}
|
onLayout={evt => setLayout(evt.nativeEvent.layout)}
|
||||||
style={[
|
style={[
|
||||||
|
bgColor,
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
a.absolute,
|
a.absolute,
|
||||||
{bottom: '100%'},
|
{bottom: '100%'},
|
||||||
isFromSelf ? a.right_0 : a.left_0,
|
isFromSelf ? a.right_0 : a.left_0,
|
||||||
t.scheme === 'light' ? t.atoms.bg : t.atoms.bg_contrast_25,
|
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.p_xs,
|
a.p_xs,
|
||||||
a.gap_xs,
|
a.gap_xs,
|
||||||
@@ -97,7 +99,7 @@ export function EmojiReactionPicker({
|
|||||||
}
|
}
|
||||||
: alreadyReacted
|
: alreadyReacted
|
||||||
? {backgroundColor: t.palette.primary_200}
|
? {backgroundColor: t.palette.primary_200}
|
||||||
: t.atoms.bg,
|
: bgColor,
|
||||||
{height: 40, width: 40},
|
{height: 40, width: 40},
|
||||||
a.justify_center,
|
a.justify_center,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
|
|||||||
Reference in New Issue
Block a user