Skip to content

Commit

Permalink
Reduce share query button size (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onokaev committed Aug 25, 2022
1 parent 0cafe3d commit 7987e01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/app/views/query-runner/QueryRunner.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export const queryRunnerStyles = () => {
root: {
flexBasis: '75px'
}
},
shareQueryButtonStyles: {
root: {
flexBasis: '40px'
}
}
};
};
4 changes: 2 additions & 2 deletions src/app/views/query-runner/query-input/QueryInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const QueryInput = (props: IQueryInputProps) => {
const { mobileScreen } = sidebarProperties;

const showError = !authenticated && sampleQuery.selectedVerb !== 'GET';
const { queryButtonStyles, verbSelector } = queryRunnerStyles();
const { queryButtonStyles, verbSelector, shareQueryButtonStyles } = queryRunnerStyles();
verbSelector.title = {
...verbSelector.title,
background: getStyleFor(sampleQuery.selectedVerb)
Expand Down Expand Up @@ -114,7 +114,7 @@ const QueryInput = (props: IQueryInputProps) => {
allowDisabledFocus={true}
/>
</Stack.Item>
<Stack.Item shrink styles={!mobileScreen ? queryButtonStyles : {}}>
<Stack.Item shrink styles={!mobileScreen ? shareQueryButtonStyles : {}}>
<ShareQuery />
</Stack.Item>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/query-runner/query-runner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.run-query-button {
button {
width: 100%;
padding: 0;
padding: 3;
}
}

Expand Down

0 comments on commit 7987e01

Please sign in to comment.