mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 18:11:12 -05:00
Make captions optional
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user