chore: pr #766 ux polish

This commit is contained in:
Anoop M D
2023-10-25 23:29:59 +05:30
parent 36f19ec7bc
commit 32b696da57
4 changed files with 7 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import styled from 'styled-components';
const StyledWrapper = styled.div`
font-size: 0.8125rem;
color: ${(props) => props.theme.requestTabPanel.responseStatus};
`;
export default StyledWrapper;

View File

@@ -2,6 +2,7 @@ import React from 'react';
import StyledWrapper from './StyledWrapper';
import toast from 'react-hot-toast';
import get from 'lodash/get';
import { IconDownload } from '@tabler/icons';
const ResponseSave = ({ item }) => {
const { ipcRenderer } = window;
@@ -21,9 +22,9 @@ const ResponseSave = ({ item }) => {
};
return (
<StyledWrapper className="ml-4">
<button onClick={saveResponseToFile} disabled={!response.dataBuffer}>
Save Response
<StyledWrapper className="ml-4 flex items-center">
<button onClick={saveResponseToFile} disabled={!response.dataBuffer} title="Save response to file">
<IconDownload size={16} strokeWidth={1.5} />
</button>
</StyledWrapper>
);