fix: 월 네비 가운데 유지·액션 우측 정렬 + 검색 모달 버튼 넘침 수정

- 가계부/예산 month-nav: 좌 spacer + 우 mn-actions(flex:1)로 네비 중앙 고정,
  추가/검색·필터 버튼 우측 정렬
- 커뮤니티 검색 모달: input min-width:0 + select/버튼 flex:none 으로
  검색 아이콘이 모달 밖으로 밀리는 문제 해결

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-27 23:35:24 +09:00
parent 59b17051a4
commit c4c58d2e24
3 changed files with 36 additions and 6 deletions
+18 -5
View File
@@ -848,14 +848,17 @@ onMounted(async () => {
</div>
<div class="month-nav">
<span class="mn-spacer"></span>
<IconBtn icon="chevronLeft" title="이전 달" size="sm" @click="prevMonth" />
<span class="period">{{ periodLabel }}</span>
<IconBtn icon="chevronRight" title="다음 달" size="sm" @click="nextMonth" />
<IconBtn
icon="filter" title="검색·필터" class="filter-toggle"
:variant="hasFilter ? 'primary' : 'default'" @click="filterOpen = !filterOpen"
/>
<IconBtn icon="plus" title="내역 추가" variant="primary" @click="openCreate" />
<div class="mn-actions">
<IconBtn
icon="filter" title="검색·필터" class="filter-toggle"
:variant="hasFilter ? 'primary' : 'default'" @click="filterOpen = !filterOpen"
/>
<IconBtn icon="plus" title="내역 추가" variant="primary" @click="openCreate" />
</div>
</div>
<div v-if="filterOpen" class="filter-bar">
@@ -1265,6 +1268,16 @@ button.primary {
gap: 1rem;
margin-bottom: 1rem;
}
/* 좌측 spacer + 우측 액션을 같은 flex:1 로 둬서 가운데 네비를 정확히 중앙 유지 */
.mn-spacer {
flex: 1;
}
.mn-actions {
flex: 1;
display: flex;
justify-content: flex-end;
gap: 0.4rem;
}
.period {
font-size: 1.1rem;
font-weight: 600;
+13 -1
View File
@@ -243,10 +243,13 @@ onMounted(() => {
<template>
<section class="budget">
<div class="month-nav">
<span class="mn-spacer"></span>
<IconBtn icon="chevronLeft" title="이전 달" size="sm" @click="prevMonth" />
<span class="period">{{ periodLabel }}</span>
<IconBtn icon="chevronRight" title="다음 달" size="sm" @click="nextMonth" />
<IconBtn icon="plus" title="예산 추가" variant="primary" @click="openCreate" />
<div class="mn-actions">
<IconBtn icon="plus" title="예산 추가" variant="primary" @click="openCreate" />
</div>
</div>
<!-- 예상 수입 vs 예산 -->
@@ -412,6 +415,15 @@ button.primary {
gap: 1rem;
margin-bottom: 1.25rem;
}
.mn-spacer {
flex: 1;
}
.mn-actions {
flex: 1;
display: flex;
justify-content: flex-end;
gap: 0.4rem;
}
.period {
font-size: 1.1rem;
font-weight: 600;