Minor style updates

This commit is contained in:
Gregory Schier
2023-03-15 17:25:04 -07:00
parent 97926ddc03
commit e3faf32708
7 changed files with 19 additions and 11 deletions

View File

@@ -70,15 +70,13 @@ export const ResponsePane = memo(function ResponsePane({ className }: Props) {
)}
<HStack alignItems="center" className="ml-auto h-8">
<IconButton
title={viewMode === 'pretty' ? 'View Raw' : 'View Prettified'}
icon={viewMode === 'pretty' ? 'eye' : 'code'}
size="sm"
className="ml-1"
onClick={() => setViewMode((m) => (m === 'pretty' ? 'raw' : 'pretty'))}
/>
<Dropdown
items={[
{
label: viewMode === 'pretty' ? 'View Raw' : 'View Prettified',
onSelect: () => setViewMode((m) => (m === 'pretty' ? 'raw' : 'pretty')),
},
'-----',
{
label: 'Clear Response',
onSelect: deleteResponse.mutate,
@@ -100,7 +98,7 @@ export const ResponsePane = memo(function ResponsePane({ className }: Props) {
<DropdownMenuTrigger>
<IconButton
title="Show response history"
icon="clock"
icon="triangleDown"
className="ml-auto"
size="sm"
/>