fix: 좁은 화면에서 히어로 오늘/내일 스위치 글자가 두 줄로 꺾이던 것
- 360px 안팎에서 윗줄 자리가 모자라면 날짜와 함께 스위치까지 줄어 '내일'(또는 '오늘')이 세로로 꺾였다 - 스위치는 줄지 않고 줄바꿈도 하지 않게, 줄어드는 건 날짜만
This commit is contained in:
1 parent
520fae93a8
commit
5c134ddf2f
1 file changed
+2
-1
@@ -319,7 +319,8 @@ function Hero({ hero, post, today, ranked, all, feedLoad, todayLoad }: HeroProps
|
||||
)}
|
||||
<div className="relative z-[3] flex items-center justify-between">
|
||||
<span className="flex items-center gap-2">
|
||||
<span className="b-strip grid grid-cols-2 rounded-full p-[3px]" role="radiogroup" aria-label="오늘 또는 내일 날씨">
|
||||
{/* 좁은 화면에서 줄어드는 건 옆의 날짜만(두 줄로). 스위치까지 줄면 '내일' 글자가 세로로 꺾인다 */}
|
||||
<span className="b-strip grid shrink-0 grid-cols-2 rounded-full p-[3px] whitespace-nowrap" role="radiogroup" aria-label="오늘 또는 내일 날씨">
|
||||
{(
|
||||
[
|
||||
[false, '오늘'],
|
||||
|
||||
Reference in new issue
Block a user