| ... | ... | @@ -459,26 +459,18 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 459 | 459 | <Popover open={isQuickActionPopoverOpen} onOpenChange={setIsQuickActionPopoverOpen}> |
| 460 | 460 | <PopoverTrigger |
| 461 | 461 | render={ |
| 462 | | <span |
| 463 | | className="inline-flex cursor-not-allowed" |
| 464 | | onBlur={() => setIsQuickActionPopoverOpen(false)} |
| 465 | | onFocus={() => setIsQuickActionPopoverOpen(true)} |
| 462 | <Button |
| 463 | variant="outline" |
| 464 | size="xs" |
| 465 | disabled={isGitActionRunning || quickAction.disabled} |
| 466 | className="cursor-not-allowed disabled:cursor-not-allowed disabled:pointer-events-auto" |
| 466 | 467 | onMouseEnter={() => setIsQuickActionPopoverOpen(true)} |
| 467 | 468 | onMouseLeave={() => setIsQuickActionPopoverOpen(false)} |
| 468 | | tabIndex={0} |
| 469 | 469 | /> |
| 470 | 470 | } |
| 471 | 471 | > |
| 472 | | <Button |
| 473 | | variant="outline" |
| 474 | | size="xs" |
| 475 | | disabled={isGitActionRunning || quickAction.disabled} |
| 476 | | className="cursor-not-allowed disabled:cursor-not-allowed" |
| 477 | | onClick={runQuickAction} |
| 478 | | > |
| 479 | | <GitQuickActionIcon quickAction={quickAction} /> |
| 480 | | {quickAction.label} |
| 481 | | </Button> |
| 472 | <GitQuickActionIcon quickAction={quickAction} /> |
| 473 | {quickAction.label} |
| 482 | 474 | </PopoverTrigger> |
| 483 | 475 | <PopoverPopup tooltipStyle side="bottom" align="start"> |
| 484 | 476 | {quickActionDisabledReason} |
| ... | ... | @@ -522,11 +514,8 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 522 | 514 | render={ |
| 523 | 515 | <span |
| 524 | 516 | className="inline-flex w-full cursor-not-allowed" |
| 525 | | onBlur={() => setOpenDisabledMenuItemId(null)} |
| 526 | | onFocus={() => setOpenDisabledMenuItemId(item.id)} |
| 527 | 517 | onMouseEnter={() => setOpenDisabledMenuItemId(item.id)} |
| 528 | 518 | onMouseLeave={() => setOpenDisabledMenuItemId(null)} |
| 529 | | tabIndex={0} |
| 530 | 519 | /> |
| 531 | 520 | } |
| 532 | 521 | > |