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"
> >
<span onClick={(e) => e.stopPropagation()}>
<Checkbox <Checkbox
checked={includeDiff} checked={includeDiff}
onChange={(checked) => setIncludeDiff(checked)} onChange={(checked) => setIncludeDiff(checked)}
ariaLabel="Include PR diff in attached context" ariaLabel="Include PR diff in attached context"
className="size-6"
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>