Fix button styles

This commit is contained in:
Gregory Schier
2024-06-20 12:55:13 -07:00
parent 3c12b14572
commit ba9b914303
2 changed files with 5 additions and 4 deletions

View File

@@ -221,14 +221,14 @@ export function GrpcConnectionSetupPane({
{isStreaming && (
<>
<IconButton
className="border border-background-highlight-secondary"
variant="border"
size="sm"
title="Cancel"
onClick={onCancel}
icon="x"
/>
<IconButton
className="border border-background-highlight-secondary"
variant="border"
size="sm"
title="Commit"
onClick={onCommit}
@@ -237,8 +237,8 @@ export function GrpcConnectionSetupPane({
</>
)}
<IconButton
className="border border-background-highlight-secondary"
size="sm"
variant="border"
title={isStreaming ? 'Connect' : 'Send'}
hotkeyAction="grpc_request.send"
onClick={isStreaming ? handleSend : handleConnect}
@@ -247,8 +247,8 @@ export function GrpcConnectionSetupPane({
</>
) : (
<IconButton
className="border border-background-highlight-secondary"
size="sm"
variant="border"
title={methodType === 'unary' ? 'Send' : 'Connect'}
hotkeyAction="grpc_request.send"
onClick={isStreaming ? onCancel : handleConnect}

View File

@@ -242,6 +242,7 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
size="sm"
title="Reformat contents"
icon="magicWand"
variant="border"
className={classNames(actionClassName)}
onClick={() => {
if (cm.current === null) return;