Make captions optional

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 18:38:26 +00:00
parent 3499c4891f
commit b2989c4c4d

View File

@@ -198,13 +198,13 @@ export function PhotoCaptionEditor({
</div> </div>
<div> <div>
<Label htmlFor={`caption-${index}`} className="text-xs"> <Label htmlFor={`caption-${index}`} className="text-xs">
Caption Caption <span className="text-muted-foreground">(optional but recommended)</span>
</Label> </Label>
<Input <Input
id={`caption-${index}`} id={`caption-${index}`}
value={photo.caption} value={photo.caption}
onChange={(e) => updatePhotoCaption(index, e.target.value)} onChange={(e) => updatePhotoCaption(index, e.target.value)}
placeholder="Add a caption for this photo..." placeholder="Add a caption to help viewers understand this photo..."
maxLength={maxCaptionLength} maxLength={maxCaptionLength}
className="h-8 text-sm" className="h-8 text-sm"
/> />
@@ -226,7 +226,7 @@ export function PhotoCaptionEditor({
)} )}
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground">
{photo.caption || ( {photo.caption || (
<span className="italic">Click edit to add caption</span> <span className="italic">No caption added</span>
)} )}
</p> </p>
</div> </div>