[dyad] Centered image analysis summary text - wrote 1 file(s)
This commit is contained in:
@@ -77,8 +77,15 @@ export function ImageAltDisplay({ images }: ImageAltDisplayProps) {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 p-4 bg-muted/50 rounded-lg">
|
||||
<div className="flex flex-col sm:flex-row sm:items-center gap-4">
|
||||
<div>
|
||||
<div className="flex items-center space-x-2">
|
||||
<Checkbox
|
||||
id="missing-alt"
|
||||
checked={showMissingOnly}
|
||||
onCheckedChange={(checked) => setShowMissingOnly(!!checked)}
|
||||
/>
|
||||
<Label htmlFor="missing-alt">Show only missing alt text</Label>
|
||||
</div>
|
||||
<div className="text-center">
|
||||
{missingAltCount > 0 ? (
|
||||
<p className="text-sm font-medium text-destructive">
|
||||
<span className="font-bold">{missingAltCount}</span> of{" "}
|
||||
@@ -90,15 +97,6 @@ export function ImageAltDisplay({ images }: ImageAltDisplayProps) {
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center space-x-2">
|
||||
<Checkbox
|
||||
id="missing-alt"
|
||||
checked={showMissingOnly}
|
||||
onCheckedChange={(checked) => setShowMissingOnly(!!checked)}
|
||||
/>
|
||||
<Label htmlFor="missing-alt">Show only missing alt text</Label>
|
||||
</div>
|
||||
</div>
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
|
||||
Reference in New Issue
Block a user