fix: restore attach PR dialog checkbox behavior

Fix include-diff checkbox so clicks reliably toggle state
Return checkbox to normal size in the attach PR dialog
Keep label and checkbox interaction consistent
This commit is contained in:
Bohdan Triapitsyn
2026-04-20 16:48:50 +03:00
parent 75c6277fa5
commit 0f753fa62e
@@ -274,17 +274,17 @@ export function GitHubPrPickerDialog({
<button <button
type="button" type="button"
onClick={() => setIncludeDiff((prev) => !prev)} onClick={() => setIncludeDiff((prev) => !prev)}
className="h-9 shrink-0 flex items-center gap-1 text-left" className="h-9 shrink-0 flex items-center gap-2 text-left"
aria-pressed={includeDiff} aria-pressed={includeDiff}
aria-label="Include PR diff in attached context" aria-label="Include PR diff in attached context"
> >
<Checkbox <span onClick={(e) => e.stopPropagation()}>
checked={includeDiff} <Checkbox
onChange={(checked) => setIncludeDiff(checked)} checked={includeDiff}
ariaLabel="Include PR diff in attached context" onChange={(checked) => setIncludeDiff(checked)}
className="size-6" ariaLabel="Include PR diff in attached context"
iconClassName="size-5" />
/> </span>
<span className="typography-small text-muted-foreground whitespace-nowrap">Include PR diff</span> <span className="typography-small text-muted-foreground whitespace-nowrap">Include PR diff</span>
</button> </button>
</div> </div>