chore: move Tags section directly under Color label
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -471,6 +471,25 @@ export function PhotoInfoPanel({ photoId, darkTheme = false }: PhotoInfoPanelPro
|
|||||||
|
|
||||||
{/* Read-only metadata sections */}
|
{/* Read-only metadata sections */}
|
||||||
<div className="flex-1 overflow-y-auto">
|
<div className="flex-1 overflow-y-auto">
|
||||||
|
<Section
|
||||||
|
title="Tags"
|
||||||
|
expanded={expandedSections.has('tags')}
|
||||||
|
onToggle={() => toggleSection('tags')}
|
||||||
|
>
|
||||||
|
<TagsEditor
|
||||||
|
photoTags={photo.tags ?? []}
|
||||||
|
allTags={allTags}
|
||||||
|
tagInput={tagInput}
|
||||||
|
onTagInputChange={setTagInput}
|
||||||
|
onAttachExisting={(id) => attachExistingTagMutation.mutate(id)}
|
||||||
|
onCreateAndAttach={(name) => {
|
||||||
|
addTagMutation.mutate(name)
|
||||||
|
setTagInput('')
|
||||||
|
}}
|
||||||
|
onRemove={(id) => removeTagMutation.mutate(id)}
|
||||||
|
/>
|
||||||
|
</Section>
|
||||||
|
|
||||||
<Section
|
<Section
|
||||||
title="Basic Info"
|
title="Basic Info"
|
||||||
expanded={expandedSections.has('basic')}
|
expanded={expandedSections.has('basic')}
|
||||||
@@ -577,24 +596,6 @@ export function PhotoInfoPanel({ photoId, darkTheme = false }: PhotoInfoPanelPro
|
|||||||
)}
|
)}
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section
|
|
||||||
title="Tags"
|
|
||||||
expanded={expandedSections.has('tags')}
|
|
||||||
onToggle={() => toggleSection('tags')}
|
|
||||||
>
|
|
||||||
<TagsEditor
|
|
||||||
photoTags={photo.tags ?? []}
|
|
||||||
allTags={allTags}
|
|
||||||
tagInput={tagInput}
|
|
||||||
onTagInputChange={setTagInput}
|
|
||||||
onAttachExisting={(id) => attachExistingTagMutation.mutate(id)}
|
|
||||||
onCreateAndAttach={(name) => {
|
|
||||||
addTagMutation.mutate(name)
|
|
||||||
setTagInput('')
|
|
||||||
}}
|
|
||||||
onRemove={(id) => removeTagMutation.mutate(id)}
|
|
||||||
/>
|
|
||||||
</Section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user