Update ApplyActions.tsx

This commit is contained in:
Patrick Erichsen 2025-04-10 22:48:50 -07:00
parent f5dda43c3a
commit ceb6270cf5

View file

@ -54,33 +54,33 @@ export default function ApplyActions(props: ApplyActionsProps) {
<div className="flex items-center rounded bg-zinc-700 pl-2 pr-1">
<span className="inline-flex w-min items-center gap-2 text-center text-xs text-gray-400">
Applying
<div>
<Spinner />
</div>
<Spinner />
</span>
</div>
);
case "done":
return (
<div className="flex items-center sm:gap-1">
<div className="flex items-center rounded bg-zinc-700 px-1.5 sm:gap-1">
<span className="max-xs:hidden text-center text-xs text-gray-400">
{`${props.applyState?.numDiffs === 1 ? "1 diff" : `${props.applyState?.numDiffs} diffs`}`}
<span className="max-md:hidden">{` remaining`}</span>
</span>
<ToolbarButtonWithTooltip
onClick={onClickReject}
tooltipContent={`Reject all (${getMetaKeyLabel()}⇧⌫)`}
>
<XMarkIcon className="h-4 w-4 text-red-600 hover:brightness-125" />
</ToolbarButtonWithTooltip>
<div className="flex">
<ToolbarButtonWithTooltip
onClick={onClickReject}
tooltipContent={`Reject all (${getMetaKeyLabel()}⇧⌫)`}
>
<XMarkIcon className="h-3.5 w-3.5 text-red-600 hover:brightness-125" />
</ToolbarButtonWithTooltip>
<ToolbarButtonWithTooltip
onClick={props.onClickAccept}
tooltipContent={`Accept all (${getMetaKeyLabel()}⇧⏎)`}
>
<CheckIcon className="h-4 w-4 text-green-600 hover:brightness-125" />
</ToolbarButtonWithTooltip>
<ToolbarButtonWithTooltip
onClick={props.onClickAccept}
tooltipContent={`Accept all (${getMetaKeyLabel()}⇧⏎)`}
>
<CheckIcon className="h-3.5 w-3.5 text-green-600 hover:brightness-125" />
</ToolbarButtonWithTooltip>
</div>
</div>
);
case "closed":
@ -89,7 +89,7 @@ export default function ApplyActions(props: ApplyActionsProps) {
return (
<span className="flex items-center rounded bg-zinc-700 text-slate-400 max-sm:px-0.5 sm:pl-2">
<span className="max-sm:hidden">Applied</span>
<CheckIcon className="h-4 w-4 hover:brightness-125 sm:px-1" />
<CheckIcon className="h-3.5 w-3.5 hover:brightness-125 sm:px-1" />
</span>
);
}