From 8a47000c8021cb24557b570207b7dee95d42da9c Mon Sep 17 00:00:00 2001 From: optrader Date: Sun, 23 Nov 2025 12:30:59 +0900 Subject: [PATCH] [251123] fix: DetailPanel ThemeContent-4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 23. 12:30:59 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 3개 β€’ μΆ”κ°€: +19쀄 β€’ μ‚­μ œ: -7쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx ~ com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less ~ com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeItemCard.module.less πŸ”§ ν•¨μˆ˜ λ³€κ²½ λ‚΄μš©: πŸ“„ com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx (javascript): πŸ”„ Modified: SpotlightContainerDecorator() πŸ“„ com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less (unknown): βœ… Added: global() --- .../DetailPanel/ThemeProduct/ThemeContents.jsx | 14 ++++++++++++-- .../ThemeProduct/ThemeContents.module.less | 10 ++++++---- .../ThemeProduct/ThemeItemCard.module.less | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx index 4a2674c4..f60c6ec3 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.jsx @@ -20,7 +20,6 @@ const Container = SpotlightContainerDecorator( preserveId: true, spotlightDirection: 'vertical', // THEME ITEM λ²„νŠΌ -> 리슀트(μ•„λž˜) 이동 spotlightRestrict: 'self-only', - leaveFor: {}, // arrow key둜 λΉ μ Έλ‚˜κ°€μ§€ μ•Šλ„λ‘ μ„€μ • }, 'div' ); @@ -246,7 +245,12 @@ export default function ThemeContents({ // THEME ITEM λ²„νŠΌκ³Ό 첫 번째 μ•„μ΄ν…œ μ—°κ²° Spotlight.set('theme-contents-close-button', { - next: { down: firstItemId }, + next: { + down: firstItemId, + up: 'theme-contents-close-button', + left: 'theme-contents-close-button', + right: 'theme-contents-close-button', + }, }); // λͺ¨λ“  μ•„μ΄ν…œμ˜ μœ„/μ•„λž˜/쒌/우 λ„€λΉ„κ²Œμ΄μ…˜ μ„€μ • @@ -257,13 +261,19 @@ export default function ThemeContents({ const nextConfig = { up: 'theme-contents-close-button', + down: itemId, }; if (nextItemId) { nextConfig.right = nextItemId; + } else { + nextConfig.right = itemId; } + if (prevItemId) { nextConfig.left = prevItemId; + } else { + nextConfig.left = itemId; } Spotlight.set(itemId, { next: nextConfig }); diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less index 1c064286..4531e541 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less +++ b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeContents.module.less @@ -32,8 +32,8 @@ .itemsWrapper { width: 100%; - height: 200px; - padding: 5px; + height: 220px; + padding: 20px; display: inline-flex; flex-direction: row; gap: 18px; @@ -85,7 +85,7 @@ width: 635px !important; height: 60px !important; padding: 20px 30px !important; - background: #c72054 !important; + background: rgba(255, 255, 255, 0.1) !important; overflow: visible !important; border-radius: 6px !important; border: none !important; @@ -97,6 +97,7 @@ caret-color: transparent !important; user-select: none !important; -webkit-user-select: none !important; + transition: background 0.2s ease !important; color: white !important; font-size: 25px !important; @@ -126,7 +127,8 @@ } } - &:focus { + &:focus, + &:global(.spotlight) { background: @PRIMARY_COLOR_RED !important; outline: none !important; caret-color: transparent !important; diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeItemCard.module.less b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeItemCard.module.less index 80580af6..543a49db 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeItemCard.module.less +++ b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/ThemeItemCard.module.less @@ -2,7 +2,7 @@ @import "../../../style/utils.module.less"; .itemCard { - width: 340px; + width: 470px; height: 180px; padding: 30px; box-sizing: border-box;