fix tickets

This commit is contained in:
Thomas Demirdjian
2025-10-03 16:19:48 +02:00
parent a1d00b8cf6
commit f3229be1f0
13 changed files with 273 additions and 77 deletions
+6 -1
View File
@@ -14,12 +14,17 @@ const BorderGradientButton = ({
containerStyle = {},
tint = "dark",
disabled = false,
maxWidth = null,
}) => {
return (
<Pressable
onPress={onPress}
disabled={disabled}
style={{ ...containerStyle, opacity: disabled ? 0.6 : 1 }}
style={{
maxWidth: maxWidth ? maxWidth : null,
...containerStyle,
opacity: disabled ? 0.6 : 1,
}}
>
<BorderGradient
gradientProps={{
@@ -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 davant conservé
colors={borderColors}
tint={tint}
onPress={() => toggleSelect(item)}
gradientProps={
useEmotionColors && !sel ? { locations: [0.24, 1] } : undefined
}
showBorder={!sel} // mobile: bordure dorigine
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={{