refactor: move action bar to top and lighten styling

- Moved PlanActionBar from fixed bottom to sticky top below GroupView
- Removed position: fixed and bottom padding workaround
- Action bar now uses lighter bg (#fafafa), thinner padding, border-bottom
- Removed unused padding-bottom: 100px from .plan, reduced to 24px
This commit is contained in:
2026-07-14 21:55:13 +02:00
parent ad29d0682e
commit 9d89f32374
2 changed files with 32 additions and 34 deletions
+28 -30
View File
@@ -324,18 +324,17 @@ async function importZelebrationsplan() {
<GroupView :groups="plan.groups" :admin="editPlanAdmin"
@new="createNewPlan" @delete="deletePlan" @edit="editPlan" class="no-print"/>
<div class="view-toggle no-print" v-if="plan.gottesdienste.length > 0">
<button
class="flat"
:class="{ active: viewMode === 'table' }"
@click="viewMode = 'table'"
><i>table_rows</i> Tabelle</button>
<button
class="flat"
:class="{ active: viewMode === 'list' }"
@click="viewMode = 'list'"
><i>list</i> Liste</button>
</div>
<PlanActionBar
class="action-bar no-print"
:save="getDif().length > 0"
:plan="false"
:godi="true"
@save="saveChanges()"
@add-godi="createGottesdienst()"
@add-mini="createMinistrant()"
@import-zelebrationsplan="importZelebrationsplan()"
v-if="editPlanAdmin"
/>
<ListView
:gottesdienste="sortedGottesdienste"
@@ -382,18 +381,18 @@ async function importZelebrationsplan() {
</MobilePlan>
</template>
<PlanActionBar
class="action-bar no-print"
:save="getDif().length > 0"
:plan="false"
:godi="true"
@save="saveChanges()"
@add-godi="createGottesdienst()"
@add-mini="createMinistrant()"
@import-zelebrationsplan="importZelebrationsplan()"
v-if="editPlanAdmin"
/>
<div class="view-toggle no-print" v-if="plan.gottesdienste.length > 0">
<button
class="flat"
:class="{ active: viewMode === 'table' }"
@click="viewMode = 'table'"
><i>table_rows</i> Tabelle</button>
<button
class="flat"
:class="{ active: viewMode === 'list' }"
@click="viewMode = 'list'"
><i>list</i> Liste</button>
</div>
<SavingIndicator :visible="isSaving"/>
</div>
@@ -413,7 +412,7 @@ async function importZelebrationsplan() {
}
.plan {
padding-bottom: 100px;
padding-bottom: 24px;
}
.plan.table {
@@ -422,10 +421,9 @@ async function importZelebrationsplan() {
.container .view-toggle {
display: flex;
justify-content: center;
gap: 4px;
padding: 8px 12px;
background: #f5f5f5;
border-bottom: 1px solid #d7d5d5;
button {
font-size: 14px;
@@ -436,7 +434,7 @@ async function importZelebrationsplan() {
}
&.active {
background: #ffffff;
background: #e0e0e0;
border-color: #c4c4c4;
}
}
@@ -451,8 +449,8 @@ async function importZelebrationsplan() {
}
.action-bar {
position: fixed;
bottom: 0;
position: sticky;
top: 0;
z-index: 100;
}
</style>