only give link embeds a background on press
This commit is contained in:
@@ -92,7 +92,7 @@ export const ExternalEmbed = ({
|
|||||||
style={[a.rounded_md]}
|
style={[a.rounded_md]}
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onLongPress={onShareExternal}>
|
onLongPress={onShareExternal}>
|
||||||
{({hovered}) => (
|
{({hovered, pressed}) => (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.transition_color,
|
a.transition_color,
|
||||||
@@ -101,7 +101,7 @@ export const ExternalEmbed = ({
|
|||||||
a.overflow_hidden,
|
a.overflow_hidden,
|
||||||
a.w_full,
|
a.w_full,
|
||||||
a.border,
|
a.border,
|
||||||
t.atoms.bg,
|
pressed && t.atoms.bg,
|
||||||
style,
|
style,
|
||||||
hovered
|
hovered
|
||||||
? t.atoms.border_contrast_high
|
? t.atoms.border_contrast_high
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ export const StandardSiteEmbed = ({
|
|||||||
a.rounded_lg,
|
a.rounded_lg,
|
||||||
a.w_full,
|
a.w_full,
|
||||||
a.border,
|
a.border,
|
||||||
t.atoms.bg,
|
|
||||||
interacted ? t.atoms.border_contrast_high : t.atoms.border_contrast_low,
|
interacted ? t.atoms.border_contrast_high : t.atoms.border_contrast_low,
|
||||||
preview && a.pointer_events_none,
|
preview && a.pointer_events_none,
|
||||||
style,
|
style,
|
||||||
@@ -154,7 +153,7 @@ export const StandardSiteEmbed = ({
|
|||||||
})}
|
})}
|
||||||
onFocus={onInteract}
|
onFocus={onInteract}
|
||||||
onBlur={onInteractOut}>
|
onBlur={onInteractOut}>
|
||||||
{() => (
|
{({pressed}) => (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.w_full,
|
a.w_full,
|
||||||
@@ -171,7 +170,7 @@ export const StandardSiteEmbed = ({
|
|||||||
borderBottomLeftRadius: a.rounded_lg.borderRadius,
|
borderBottomLeftRadius: a.rounded_lg.borderRadius,
|
||||||
borderBottomRightRadius: a.rounded_lg.borderRadius,
|
borderBottomRightRadius: a.rounded_lg.borderRadius,
|
||||||
},
|
},
|
||||||
interacted ? t.atoms.bg_contrast_25 : t.atoms.bg,
|
interacted ? t.atoms.bg_contrast_25 : pressed && t.atoms.bg,
|
||||||
]}>
|
]}>
|
||||||
{imageUri ? (
|
{imageUri ? (
|
||||||
<Image
|
<Image
|
||||||
|
|||||||
Reference in New Issue
Block a user