Compare commits

...

1 Commits

Author SHA1 Message Date
openhands
310c220445 Make pause button more prominent with gray background 2025-06-25 22:38:20 +00:00
2 changed files with 8 additions and 1 deletions

View File

@@ -39,6 +39,11 @@ export function AgentControlBar() {
: AgentState.PAUSED
}
handleAction={handleAction}
className={
curAgentState !== AgentState.PAUSED
? "bg-gray-200 rounded-full p-1"
: ""
}
>
{curAgentState === AgentState.PAUSED ? <PlayIcon /> : <PauseIcon />}
</ActionButton>

View File

@@ -6,6 +6,7 @@ interface ActionButtonProps {
content: string;
action: AgentState;
handleAction: (action: AgentState) => void;
className?: string;
}
export function ActionButton({
@@ -13,6 +14,7 @@ export function ActionButton({
content,
action,
handleAction,
className = "",
children,
}: React.PropsWithChildren<ActionButtonProps>) {
return (
@@ -20,7 +22,7 @@ export function ActionButton({
<button
onClick={() => handleAction(action)}
disabled={isDisabled}
className="relative overflow-visible cursor-default hover:cursor-pointer group disabled:cursor-not-allowed transition-all duration-300 ease-in-out"
className={`relative overflow-visible cursor-default hover:cursor-pointer group disabled:cursor-not-allowed transition-all duration-300 ease-in-out ${className}`}
type="button"
>
<span className="relative group-hover:filter group-hover:drop-shadow-[0_0_5px_rgba(255,64,0,0.4)]">