diff --git a/.gitignore b/.gitignore index a6668a4..62eae01 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,9 @@ pnpm-debug.log* # database dumps from the backup service backups/ + +# local s3 mock storage +.s3data/ +**/.s3data/ +*.jpg +icons (1).json diff --git a/apps/admin/src/api/types.ts b/apps/admin/src/api/types.ts index c6d94ea..a2e854e 100644 --- a/apps/admin/src/api/types.ts +++ b/apps/admin/src/api/types.ts @@ -75,3 +75,10 @@ export interface SectionResponse { data: SiteSections[K]; updatedAt: string; } + +export interface AdminSectionSummary { + key: SectionKey; + updatedAt: string | null; + enabled: boolean; +} + diff --git a/apps/admin/src/components/AdminPage.vue b/apps/admin/src/components/AdminPage.vue index 3e3d566..1d17c3d 100644 --- a/apps/admin/src/components/AdminPage.vue +++ b/apps/admin/src/components/AdminPage.vue @@ -46,4 +46,31 @@ defineProps<{ lockBody?: boolean }>(); flex-direction: column; overflow: hidden; } + +@media (max-width: 1023px) { + .ap { + height: auto; + min-height: 100%; + overflow: visible; + } + + .ap__head { + position: sticky; + top: 52px; + z-index: 20; + padding: 10px 12px; + background: #ffffff; + box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03); + } + + .ap__body { + padding: 12px; + overflow: visible; + } + + .ap__body--locked { + overflow: visible; + height: auto; + } +} diff --git a/apps/admin/src/components/IconSelect.vue b/apps/admin/src/components/IconSelect.vue index 2ae45da..94c0212 100644 --- a/apps/admin/src/components/IconSelect.vue +++ b/apps/admin/src/components/IconSelect.vue @@ -1,20 +1,18 @@