Skip to content

Commit ad5e8c0

Browse files
authored
fix: style adjustments on export modal COMPASS-9142 (#6806)
1 parent a929550 commit ad5e8c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/compass-schema/src/components/export-schema-modal.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ const modalStyles = css({
3636
});
3737

3838
const loaderStyles = css({
39+
height: `${spacing[1600] * 5 - spacing[800]}px`,
3940
marginTop: spacing[400],
4041
});
4142

4243
const contentContainerStyles = css({
4344
paddingTop: spacing[400],
44-
paddingBottom: spacing[400],
4545
});
4646

4747
const codeEditorContainerStyles = css({
48-
height: `${spacing[1600] * 4 - spacing[400]}px`,
48+
height: `${spacing[1600] * 5 - spacing[400]}px`,
4949
padding: spacing[100],
5050
});
5151

5252
const codeStyles = css({
5353
'& .cm-editor': {
5454
paddingLeft: spacing[200],
55-
maxHeight: `${spacing[1600] * 4 - spacing[800]}px`,
55+
maxHeight: `${spacing[1600] * 5 - spacing[800]}px`,
5656
},
5757
'& .multiline-editor-actions': {
5858
marginRight: spacing[300],
@@ -230,9 +230,6 @@ const ExportSchemaModal: React.FunctionComponent<{
230230
</div>
231231
</ModalBody>
232232
<ModalFooter className={footerStyles}>
233-
<Button onClick={onClose} variant="default">
234-
Cancel
235-
</Button>
236233
<Button
237234
variant="primary"
238235
isLoading={exportStatus === 'inprogress'}
@@ -241,7 +238,10 @@ const ExportSchemaModal: React.FunctionComponent<{
241238
onClick={onSchemaDownload}
242239
data-testid="schema-export-download-button"
243240
>
244-
Export…
241+
Export..
242+
</Button>
243+
<Button onClick={onClose} variant="default">
244+
Cancel
245245
</Button>
246246
</ModalFooter>
247247
</Modal>

0 commit comments

Comments
 (0)