fix: 단풍 지도 이름표를 눌러도 명소 정보가 나오게

This commit is contained in:
minaChoi committed 2026-10-23 09:07:51 +09:00
1 parent 8ca38f1806
commit 1306c43740
1 file changed
+6 -3
+6 -3
View File
@@ -137,18 +137,21 @@ export function FoliageCard() {
)
})}
{named.map((m) => (
<span
<button
key={m.name}
type="button"
data-label={m.name}
tabIndex={-1}
aria-hidden="true"
onClick={() => setPicked(m.name === picked ? null : m.name)}
className={cx(
'pointer-events-none absolute rounded-[7px] bg-white/92 px-[5px] py-px text-[11.5px] leading-[1.35] font-extrabold whitespace-nowrap text-[#b5321f] shadow-[0_1px_3px_rgb(40_48_74/0.18)]',
'absolute cursor-pointer rounded-[7px] border-0 bg-white/92 px-[5px] py-px text-[11.5px] leading-[1.35] font-extrabold whitespace-nowrap text-[#b5321f] shadow-[0_1px_3px_rgb(40_48_74/0.18)]',
!labelAt[m.name] && 'invisible',
)}
style={labelAt[m.name] ?? { left: 0, top: 0 }}
>
{m.name}
</span>
</button>
))}
{sel && (
<p className="absolute right-0 bottom-0 z-[3] m-0 max-w-[75%] rounded-[14px] bg-white/95 px-3 py-2 text-[13px] font-bold shadow-[0_4px_12px_rgb(40_48_74/0.15)]">