[fix] site: 모달 닫기 스크롤 버그 수정 — 이용안내 체크인·체크아웃 병합, UI 다듬기

모달 onClose 가 inline 함수라 부모 리렌더마다 useEffect 가 다시 걸려
scrollY 를 0으로 덮어써 X 버튼으로 닫으면 페이지가 맨 위로 튀었다.

- lib/ui/Modal.tsx: onClose 를 ref 로 들고 [open] 에만 의존하도록 수정
  (BlogSection·ReviewSection 등 Modal 쓰는 7곳 전부 적용)
- sections/EssentialInfoSection.tsx: 체크인·체크아웃 행을 한 줄로 병합
- sections/GallerySection.tsx, UnitsSection.tsx, MobileTabBar.tsx, SiteFooter.tsx,
  items/*: 표시 폭·간격·라벨 정리
- lib/ui/Carousel.tsx: loop 이음매 간격 재점검
- scripts/prerender.ts: countUniqueContent 가 socialPosts(자체 출력)를 세지
  않도록 — 콘텐츠 0건 사이트가 게이트를 우회하던 경로

tsc 통과, vitest 100/102 passed (use-live-weather 실패 2건은 기존·무관)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Sonnet 5 committed 2026-09-18 17:23:20 +09:00
1 parent 13cc8cc830
commit 4260e20a70
22 files changed
+416 -391

No files matched your search

+11 -3
View File
@@ -30,7 +30,15 @@ it('구운 HTML 에 글이 전부 들어간다 — 크롤러는 2페이지를
for (let i = 0; i < 23; i += 1) expect(html).toContain(`${i}번째 글입니다`);
});
it('열 개를 넘으면 페이지 번호가 선다', () => {
expect(render(withPosts(23))).toContain('aria-label="글 페이지"');
expect(render(withPosts(4))).not.toContain('aria-label="글 페이지"');
it('글 개수와 무관하게 카로셀 하나로 뜬다 — 페이지를 끊지 않는다', () => {
expect(render(withPosts(23))).toContain('slider-viewport');
expect(render(withPosts(4))).toContain('slider-viewport');
expect(render(withPosts(23))).not.toContain('aria-label="글 페이지"');
});
it('날짜 라벨에 월·일·요일이 찍힌다', () => {
const html = render(withPosts(1));
expect(html).toContain('2026-09-01T09:00:00');
expect(html).toContain('9월 1일');
expect(html).toMatch(/요일/);
});