Add fixed headers to all CMS editors for better UX
This commit is contained in:
@@ -1,24 +1,32 @@
|
||||
<template>
|
||||
<div class="min-h-full py-16 bg-gray-50">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900">
|
||||
Einstellungen
|
||||
</h1>
|
||||
<div class="w-24 h-1 bg-primary-600 mt-2" />
|
||||
</div>
|
||||
<div class="space-x-3">
|
||||
<button
|
||||
@click="saveConfig"
|
||||
class="inline-flex items-center px-4 py-2 rounded-lg bg-primary-600 text-white hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
:disabled="isSaving"
|
||||
>
|
||||
<Loader2 v-if="isSaving" :size="16" class="animate-spin mr-2" />
|
||||
{{ isSaving ? 'Speichern...' : 'Speichern' }}
|
||||
</button>
|
||||
<div class="min-h-full bg-gray-50">
|
||||
<!-- Fixed Header -->
|
||||
<div class="fixed top-0 left-0 right-0 z-50 bg-white border-b border-gray-200 shadow-sm">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
||||
<div class="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900">
|
||||
Einstellungen
|
||||
</h1>
|
||||
<div class="w-24 h-1 bg-primary-600 mt-2" />
|
||||
</div>
|
||||
<div class="space-x-3">
|
||||
<button
|
||||
@click="saveConfig"
|
||||
class="inline-flex items-center px-4 py-2 rounded-lg bg-primary-600 text-white hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
:disabled="isSaving"
|
||||
>
|
||||
<Loader2 v-if="isSaving" :size="16" class="animate-spin mr-2" />
|
||||
{{ isSaving ? 'Speichern...' : 'Speichern' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Content with top padding -->
|
||||
<div class="pt-24 pb-16">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
|
||||
<!-- Loading State -->
|
||||
<div v-if="isLoading" class="flex items-center justify-center py-12">
|
||||
|
||||
Reference in New Issue
Block a user