-
-
- Back to jedmund.com
-
-
-
+
diff --git a/src/lib/components/admin/AdminSegmentedControl.svelte b/src/lib/components/admin/AdminSegmentedControl.svelte
index 8fdf68a..4e4551f 100644
--- a/src/lib/components/admin/AdminSegmentedControl.svelte
+++ b/src/lib/components/admin/AdminSegmentedControl.svelte
@@ -30,11 +30,11 @@
}
.segment {
- padding: $unit $unit-3x;
+ padding: $unit $unit-2x;
background: transparent;
border: none;
border-radius: 50px;
- font-size: 0.925rem;
+ font-size: 0.875rem;
color: $gray-40;
cursor: pointer;
transition: all 0.2s ease;
diff --git a/src/lib/components/admin/AlbumForm.svelte b/src/lib/components/admin/AlbumForm.svelte
index 36cb3f2..5be9c71 100644
--- a/src/lib/components/admin/AlbumForm.svelte
+++ b/src/lib/components/admin/AlbumForm.svelte
@@ -5,7 +5,8 @@
import AdminSegmentedControl from './AdminSegmentedControl.svelte'
import Input from './Input.svelte'
import Button from './Button.svelte'
- import StatusDropdown from './StatusDropdown.svelte'
+ import DropdownSelectField from './DropdownSelectField.svelte'
+ import AutoSaveStatus from './AutoSaveStatus.svelte'
import UnifiedMediaModal from './UnifiedMediaModal.svelte'
import SmartImage from '../SmartImage.svelte'
import Composer from './composer'
@@ -46,6 +47,19 @@
{ value: 'content', label: 'Content' }
]
+ const statusOptions = [
+ {
+ value: 'draft',
+ label: 'Draft',
+ description: 'Only visible to you'
+ },
+ {
+ value: 'published',
+ label: 'Published',
+ description: 'Visible on your public site'
+ }
+ ]
+
// Form data
let formData = $state({
title: '',
@@ -231,11 +245,6 @@
}
}
- async function handleStatusChange(newStatus: string) {
- formData.status = newStatus as any
- await handleSave()
- }
-
async function handleBulkAlbumSave() {
// Reload album to get updated photo count
if (album && mode === 'edit') {
@@ -255,17 +264,7 @@
@@ -455,6 +452,16 @@
}
}
+ .form-title {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 500;
+ color: $gray-20;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
.btn-icon {
width: 40px;
height: 40px;
diff --git a/src/lib/components/admin/AutoSaveStatus.svelte b/src/lib/components/admin/AutoSaveStatus.svelte
index 4651012..5f31252 100644
--- a/src/lib/components/admin/AutoSaveStatus.svelte
+++ b/src/lib/components/admin/AutoSaveStatus.svelte
@@ -1,19 +1,31 @@
@@ -442,6 +381,12 @@ $effect(() => {
+
+