From 9e3bff97623b88b35728b7b96d35bcbdf9c569b3 Mon Sep 17 00:00:00 2001 From: caadiq Date: Wed, 20 May 2026 22:47:13 +0900 Subject: [PATCH] =?UTF-8?q?feat(schedule):=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20=ED=95=84=ED=84=B0=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F?= =?UTF-8?q?=20=EB=8B=AC=EB=A0=A5=20=EC=98=A4=EB=8A=98=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 카테고리 카운트를 선택 날짜와 무관하게 해당 달 전체 기준으로 변경 - 카테고리 섹션이 길어지면 카드 내부 스크롤 (평소엔 콘텐츠 크기 유지) - 달력 하단에 오늘 날짜로 이동하는 버튼 추가 - 달력 하단 여백 24px → 20px Co-Authored-By: Claude Opus 4.7 --- .../pc/public/schedule/Calendar.jsx | 27 ++++++++++++++++--- .../pc/public/schedule/CategoryFilter.jsx | 6 ++--- .../src/pages/pc/public/schedule/Schedule.jsx | 27 ++++++++++--------- 3 files changed, 40 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/pc/public/schedule/Calendar.jsx b/frontend/src/components/pc/public/schedule/Calendar.jsx index 8ce8c5d..1eac069 100644 --- a/frontend/src/components/pc/public/schedule/Calendar.jsx +++ b/frontend/src/components/pc/public/schedule/Calendar.jsx @@ -1,6 +1,6 @@ import { useState, useRef, useEffect, useMemo } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; -import { ChevronLeft, ChevronRight, ChevronDown } from 'lucide-react'; +import { ChevronLeft, ChevronRight, ChevronDown, CalendarDays } from 'lucide-react'; import { getTodayKST, dayjs } from '@/utils'; import { MIN_YEAR, WEEKDAYS, MONTH_NAMES } from '@/constants'; @@ -93,6 +93,17 @@ function Calendar({ } }; + // 오늘 날짜로 이동 + const goToToday = () => { + const today = new Date(); + const isFuture = + today.getFullYear() > year || + (today.getFullYear() === year && today.getMonth() > month); + setSlideDirection(isFuture ? 1 : -1); + onDateChange(today); + onSelectDate(getTodayKST()); + }; + const selectYear = (newYear) => { onDateChange(new Date(newYear, month, 1)); }; @@ -133,7 +144,7 @@ function Calendar({ transition={{ duration: 0.2 }} className={disabled ? 'pointer-events-none' : ''} > -
+
{/* 헤더 */}
diff --git a/frontend/src/components/pc/public/schedule/CategoryFilter.jsx b/frontend/src/components/pc/public/schedule/CategoryFilter.jsx index 0119ff3..c934c54 100644 --- a/frontend/src/components/pc/public/schedule/CategoryFilter.jsx +++ b/frontend/src/components/pc/public/schedule/CategoryFilter.jsx @@ -39,10 +39,10 @@ function CategoryFilter({ -

카테고리

-
+

카테고리

+
{/* 전체 */}