Skip to content

Commit 08db6c4

Browse files
authored
Merge pull request #565 from prgrms-aibe-devcourse/Fix/fe#564
[Fix/fe#564] TASTING TAGS 심볼 크기 정상화 + 호버 툴팁 잘림 해결
2 parents 1072c0f + 235a872 commit 08db6c4

2 files changed

Lines changed: 28 additions & 10 deletions

File tree

frontend/src/features/whiskey/whiskey.css

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,19 +1274,21 @@
12741274
}
12751275

12761276
.wf-detail-tags__image {
1277-
width: 118%;
1278-
height: 118%;
1277+
width: 128%;
1278+
height: 128%;
12791279
object-fit: contain;
12801280
pointer-events: none;
12811281
}
12821282

12831283
/* Apple "Liquid Glass" 툴팁 — 라이트 페이지에 어울리는 프로스티드 글래스 */
12841284
.wf-detail-tags__tooltip {
12851285
position: absolute;
1286-
z-index: 30;
1287-
bottom: calc(100% + 12px);
1288-
left: 50%;
1289-
transform: translateX(-50%) translateY(4px) scale(0.96);
1286+
z-index: 40;
1287+
/* 태그는 좌측 사이드바에 있어 위/왼쪽으로 열면 잘린다 → 여백이 넉넉한 오른쪽으로 펼침 */
1288+
left: calc(100% + 12px);
1289+
top: 50%;
1290+
transform: translateY(-50%) translateX(-6px) scale(0.96);
1291+
transform-origin: left center;
12901292
width: min(286px, 74vw);
12911293
padding: 14px 16px;
12921294
border-radius: 20px;
@@ -1331,7 +1333,24 @@
13311333
.wf-detail-tags__item-wrap:focus-within .wf-detail-tags__tooltip {
13321334
opacity: 1;
13331335
visibility: visible;
1334-
transform: translateX(-50%) translateY(0) scale(1);
1336+
transform: translateY(-50%) translateX(0) scale(1);
1337+
}
1338+
1339+
/* 모바일: 사이드바가 전체 폭이 되어 오른쪽으로 열면 넘친다 → 버블 위 중앙 정렬로 폴백 */
1340+
@media (max-width: 768px) {
1341+
.wf-detail-tags__tooltip {
1342+
left: 50%;
1343+
top: auto;
1344+
bottom: calc(100% + 12px);
1345+
transform: translateX(-50%) translateY(6px) scale(0.96);
1346+
transform-origin: center bottom;
1347+
width: min(286px, 80vw);
1348+
}
1349+
1350+
.wf-detail-tags__item-wrap:hover .wf-detail-tags__tooltip,
1351+
.wf-detail-tags__item-wrap:focus-within .wf-detail-tags__tooltip {
1352+
transform: translateX(-50%) translateY(0) scale(1);
1353+
}
13351354
}
13361355

13371356
.wf-detail-tags__tooltip-title {

frontend/src/styles/app.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ body {
9797
}
9898

9999
.app-root .wf-detail-tags__image {
100-
width: 22px;
101-
height: 22px;
100+
width: 128%;
101+
height: 128%;
102102
object-fit: contain;
103-
margin-bottom: 2px;
104103
pointer-events: none;
105104
}
106105

0 commit comments

Comments
 (0)