Fix: "Wurde sondergekündigt?"-Label nicht über volle Spaltenbreite klickbar
Label-Klasse war flex -> Block-Layout, das die ganze col-span-2-Zeile einnimmt. Klicks rechts neben dem Text triggern dann ebenfalls die Checkbox. Fix: inline-flex – die Label-Box passt sich an den Inhalt (Checkbox + Text) an. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -903,7 +903,7 @@ export default function ContractForm() {
|
|||||||
onClear={() => setValue('cancellationConfirmationOptionsDate', '')}
|
onClear={() => setValue('cancellationConfirmationOptionsDate', '')}
|
||||||
/>
|
/>
|
||||||
<div className="col-span-2">
|
<div className="col-span-2">
|
||||||
<label className="flex items-center gap-2 cursor-pointer">
|
<label className="inline-flex items-center gap-2 cursor-pointer">
|
||||||
<input type="checkbox" {...register('wasSpecialCancellation')} className="rounded border-gray-300" />
|
<input type="checkbox" {...register('wasSpecialCancellation')} className="rounded border-gray-300" />
|
||||||
<span>Wurde sondergekündigt?</span>
|
<span>Wurde sondergekündigt?</span>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user