@devries-cameron20 / t3code Mirror · read-only / commits / 07187d3794
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 18:30 UTC

Refine disabled git action styling and menu width

- Style disabled quick-action trigger with `aria-disabled` so hover tooltip still works - Make git action menu popup/items use full-width layout for cleaner alignment

Julius Marminge committed Feb 14, 2026 at 23:49 UTC 07187d3794ad8d2290f9795fae6662091100fc6b
1 file changed +7 -6
apps/web/src/components/GitActionsControl.tsx
+7 -6
@@ -448,10 +448,10 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
448 openOnHover
449 render={
450 <Button
451 - variant="outline"
451 + aria-disabled="true"
452 + className="cursor-not-allowed opacity-64"
453 size="xs"
453 - disabled={isGitActionRunning || quickAction.disabled}
454 - className="cursor-not-allowed disabled:cursor-not-allowed disabled:pointer-events-auto"
454 + variant="outline"
455 />
456 }
457 >
@@ -485,7 +485,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
485 >
486 <ChevronDownIcon aria-hidden="true" className="size-4" />
487 </MenuTrigger>
488 - <MenuPopup align="end" sideOffset={4}>
488 + <MenuPopup align="end" className="w-full">
489 {gitActionMenuItems.map((item) => {
490 const disabledReason = getMenuActionDisabledReason(
491 item,
@@ -497,9 +497,10 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
497 <Popover key={`${item.id}-${item.label}`}>
498 <PopoverTrigger
499 openOnHover
500 - render={<span className="inline-flex w-full cursor-not-allowed" />}
500 + nativeButton={false}
501 + render={<span className="block w-max cursor-not-allowed" />}
502 >
502 - <MenuItem disabled>
503 + <MenuItem className="w-full" disabled>
504 <GitActionItemIcon icon={item.icon} />
505 {item.label}
506 </MenuItem>