From 25b682b7cb15b6d94ac0c0cc25f5e695b5e99607 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 16 May 2026 04:12:19 +0900 Subject: [PATCH] =?UTF-8?q?refactor(mypage):=20kakao=20URL=20=EC=83=81?= =?UTF-8?q?=EC=88=98=20+=20=EC=98=9B=20URL=20=EC=A0=95=EB=8F=88=20+=20?= =?UTF-8?q?=ED=83=AD=20=EA=B0=80=EB=A1=9C=20=EC=8A=A4=ED=81=AC=EB=A1=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit D 트랙 3/4. 잔여 정돈: - kakao 오픈채팅 URL hardcoded → KAKAO_OPENCHAT_URL import (lib/contact) - EmptyState linkHref + 기타 잔존 옛 URL 새 URL로 (/services/* → /music|work/*) - 탭 바: flex-wrap → flex-nowrap + overflow-x-auto + scrollbar-hide → 모바일 7-tab을 한 줄 가로 스크롤 (wrap 시 2줄 불규칙 배치 해소) - globals.css에 scrollbar-hide 유틸리티 추가 P2 Task 4 review M-5 (mobile 7-tab orphan) 해소. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/globals.css | 8 ++++++++ app/mypage/page.tsx | 31 ++++++++++++++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/app/globals.css b/app/globals.css index 68e3821..9360889 100644 --- a/app/globals.css +++ b/app/globals.css @@ -248,3 +248,11 @@ body { ::-webkit-scrollbar-thumb:hover { background: #94a3b8; } + +/* 가로 스크롤 탭바 등에서 스크롤바 시각 숨김 (mypage 7-tab 모바일) */ +.scrollbar-hide { + scrollbar-width: none; +} +.scrollbar-hide::-webkit-scrollbar { + display: none; +} diff --git a/app/mypage/page.tsx b/app/mypage/page.tsx index d9eec89..c631241 100644 --- a/app/mypage/page.tsx +++ b/app/mypage/page.tsx @@ -8,11 +8,12 @@ import type { User } from '@supabase/supabase-js'; import TelegramGuideModal from '@/app/components/TelegramGuideModal'; import { PACK_TIER_NAMES, extractPackTier, type PackTier } from '@/lib/pack-assets'; import type { PackFile } from '@/lib/supabase/pack-files'; +import { KAKAO_OPENCHAT_URL } from '@/lib/contact'; function buildSajuResultUrl(rec: SajuRecord) { const { birth_year, birth_month, birth_day, birth_hour, gender } = rec.saju_data; - if (!birth_year || !birth_month || !birth_day) return '/saju/input'; - let url = `/saju/result?year=${birth_year}&month=${birth_month}&day=${birth_day}&gender=${gender}&calendarType=solar`; + if (!birth_year || !birth_month || !birth_day) return '/work/saju/input'; + let url = `/work/saju/result?year=${birth_year}&month=${birth_month}&day=${birth_day}&gender=${gender}&calendarType=solar`; if (birth_hour != null) url += `&hour=${birth_hour}`; return url; } @@ -358,7 +359,7 @@ export default function MyPage() {
{/* 탭 */} -
+
{tabs.map((t) => (