fix tickets
This commit is contained in:
@@ -280,6 +280,10 @@ const ListSelection = ({
|
||||
const itemKey = buildItemKey(String(val ?? ""));
|
||||
const isHovered = isWeb && !disableHover && hoveredKey === itemKey;
|
||||
const showHoverOutline = isHovered && !sel;
|
||||
const showSelectionOutline =
|
||||
!isWeb &&
|
||||
(variant === "simple" || variant === "emotion" || variant === "titleDescription") &&
|
||||
sel;
|
||||
|
||||
const baseContent =
|
||||
variant === "simple"
|
||||
@@ -294,6 +298,8 @@ const ListSelection = ({
|
||||
};
|
||||
if (sel && isWeb) headerContainerStyle.backgroundColor = "transparent";
|
||||
|
||||
const shouldShowBorder = !sel;
|
||||
|
||||
return (
|
||||
<View
|
||||
style={[{ position: "relative" }, itemOuterStyle]}
|
||||
@@ -305,13 +311,13 @@ const ListSelection = ({
|
||||
}
|
||||
>
|
||||
<CreateLyricsHeader
|
||||
colors={borderColors} // mobile: rendu d’avant conservé
|
||||
colors={borderColors}
|
||||
tint={tint}
|
||||
onPress={() => toggleSelect(item)}
|
||||
gradientProps={
|
||||
useEmotionColors && !sel ? { locations: [0.24, 1] } : undefined
|
||||
}
|
||||
showBorder={!sel} // mobile: bordure d’origine
|
||||
showBorder={shouldShowBorder}
|
||||
disableBlur={sel && isWeb} // web: pas de blur si gradient
|
||||
blurViewStyle={
|
||||
sel && isWeb
|
||||
@@ -323,7 +329,7 @@ const ListSelection = ({
|
||||
{withWebBlueGradientIfSelected(baseContent, sel)}
|
||||
</CreateLyricsHeader>
|
||||
|
||||
{showHoverOutline && (
|
||||
{(showHoverOutline || showSelectionOutline) && (
|
||||
<View
|
||||
pointerEvents="none"
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user