fix: 검색 모드 진입 시 기존 일정 숨김

- isSearchMode일 때 searchTerm 없으면 '검색어를 입력하세요' 표시
- 기존 날짜별 일정이 보이지 않도록 조건 수정
This commit is contained in:
caadiq 2026-01-10 10:14:59 +09:00
parent c8ec8de946
commit 54bbe75ecc

View file

@ -449,9 +449,14 @@ function MobileSchedule() {
{/* 컨텐츠 영역 */}
<div className="mobile-content" ref={isSearchMode && searchTerm ? scrollContainerRef : contentRef}>
<div className="px-4 pt-4 pb-4">
{isSearchMode && searchTerm ? (
// -
searchLoading ? (
{isSearchMode ? (
//
!searchTerm ? (
// -
<div className="text-center py-8 text-gray-400">
검색어를 입력하세요
</div>
) : searchLoading ? (
<div className="flex justify-center py-8">
<div className="w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin" />
</div>