-
Notifications
You must be signed in to change notification settings - Fork 0
[Fix] WTH-396: 어드민 반응형 설정 #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "fix/WTH-396-\uC5B4\uB4DC\uBBFC-\uBC18\uC751\uD615-\uC124\uC815"
Changes from all commits
6005c33
9e97c89
6de8082
97ff202
996f240
6c01dd1
347e4ef
f8fcff4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,9 +10,6 @@ | |
| !.yarn/releases | ||
| !.yarn/versions | ||
|
|
||
|
|
||
| .claude/settings.local.json | ||
|
|
||
| # testing | ||
| /coverage | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,5 @@ | ||||||||||
| export const SCHEDULE_MODAL_CONTENT_CLASS = | ||||||||||
| 'bg-background flex max-h-[calc(100%-2rem)] w-215 max-w-[calc(100%-2rem)] min-w-90 flex-col gap-0 overflow-hidden rounded-lg p-0'; | ||||||||||
|
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major | 🏗️ Heavy lift 토큰 우선 규칙에 맞게 임의값(calc) 클래스 정리가 필요합니다.
🤖 Prompt for AI Agents소형 화면에서 모달 가로 오버플로가 발생할 수 있습니다.
🔧 제안 수정안 export const SCHEDULE_MODAL_CONTENT_CLASS =
- 'bg-background flex max-h-[calc(100%-2rem)] w-215 max-w-[calc(100%-2rem)] min-w-90 flex-col gap-0 overflow-hidden rounded-lg p-0';
+ 'bg-background flex max-h-[calc(100%-2rem)] w-215 max-w-[calc(100%-2rem)] tablet:min-w-90 flex-col gap-0 overflow-hidden rounded-lg p-0';📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| export const SCHEDULE_MODAL_FOOTER_CLASS = | ||||||||||
| 'bg-container-neutral flex shrink-0 items-center justify-end gap-200 px-400 pt-400 pb-500'; | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| 'use client'; | ||
|
|
||
| import { useSyncExternalStore } from 'react'; | ||
|
|
||
| /** | ||
| * CSS 미디어 쿼리의 매치 여부를 구독한다. | ||
| * SSR 시에는 항상 false를 반환하고, 마운트 후 실제 값으로 동기화되어 하이드레이션 불일치를 피한다. | ||
| */ | ||
| function useMediaQuery(query: string): boolean { | ||
| const subscribe = (callback: () => void) => { | ||
| const mql = window.matchMedia(query); | ||
| mql.addEventListener('change', callback); | ||
| return () => mql.removeEventListener('change', callback); | ||
| }; | ||
|
|
||
| const getSnapshot = () => window.matchMedia(query).matches; | ||
| const getServerSnapshot = () => false; | ||
|
|
||
| return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); | ||
| } | ||
|
|
||
| export { useMediaQuery }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Team-Weeth/weeth-client
Length of output: 23988
spacing 토큰 범위(가이드) 위반 여부 확인 필요
src/app/globals.css의@theme inline에--spacing-700: 32px가 정의되어 있어tablet:p-700은 유효한 클래스입니다. 다만 코딩 가이드의 padding 토큰 범위(p-100~500)를 벗어나므로tablet:p-700사용 의도가 맞는지 확인하고(32px 필요 여부) 가능하면p-500이하 토큰으로 조정이 필요합니다.🤖 Prompt for AI Agents