Files
web-page/src/components/SwipeableView.css
gahusb bebd55874c fix(todo): 모바일 최적화 — 터치 타겟 44px, 라벨 버튼, 확인 시트, 탭 인디케이터
- 카드 액션 버튼 36px→44px + 아이콘+텍스트 라벨 (모바일)
- 날짜 필터/입력 터치 타겟 36px min-height로 확대
- 빈 상태 메시지 모바일 적절하게 변경 ("드래그하여 이동"→"아직 항목이 없습니다")
- 완료 비우기 MobileSheet 확인 다이얼로그 (모바일)
- 완료 탭 내 "비우기" 버튼 추가
- SwipeableView 활성 탭 하단 인디케이터 + 44px 높이
- 폼 라벨 14px, 입력 16px (iOS 줌 방지)
- 모바일 컬럼/패널 배경·보더 제거로 공간 절약

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 13:39:09 +09:00

101 lines
1.8 KiB
CSS

/* SwipeableView — swipeable tab container */
.swipeable-view {
overflow: hidden;
position: relative;
width: 100%;
}
/* Tab bar */
.swipeable-view__tabs {
display: flex;
gap: 4px;
padding: 4px;
background: var(--surface);
border-radius: var(--radius-md);
border: 1px solid var(--line);
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
margin-bottom: 8px;
}
.swipeable-view__tabs::-webkit-scrollbar {
display: none;
}
/* Individual tab button */
.swipeable-view__tab {
flex: 1;
min-width: fit-content;
padding: 8px 16px;
background: none;
border: none;
color: var(--text-dim);
font-family: var(--font-body);
font-size: 13px;
font-weight: 500;
border-radius: calc(var(--radius-md) - 2px);
cursor: pointer;
white-space: nowrap;
transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
-webkit-tap-highlight-color: transparent;
outline: none;
}
.swipeable-view__tab.is-active {
background: var(--surface-raised);
color: var(--neon-cyan);
position: relative;
}
.swipeable-view__tab.is-active::after {
content: '';
position: absolute;
bottom: 2px;
left: 20%;
right: 20%;
height: 2px;
background: var(--neon-cyan);
border-radius: 1px;
}
/* Sliding track */
.swipeable-view__track {
display: flex;
width: 100%;
transition: transform 0.3s var(--ease-out);
will-change: transform;
}
.swipeable-view__track.is-swiping {
transition: none;
}
/* Each panel */
.swipeable-view__panel {
flex: 0 0 100%;
min-width: 0;
overflow-y: auto;
}
/* Mobile touch targets */
@media (max-width: 768px) {
.swipeable-view__tab {
min-height: 44px;
font-size: 14px;
padding: 10px 16px;
}
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
.swipeable-view__track {
transition: none;
}
.swipeable-view__tab {
transition: none;
}
}