Skip to content

Commit 8aadad7

Browse files
committed
fix(ui): added spacing betwen action buttons in edit json key
1 parent 92fe37e commit 8aadad7

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/monaco-editor/MonacoEditor.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import {
1313
PrimaryButton,
1414
SecondaryButton,
1515
} from 'uiSrc/components/base/forms/buttons'
16+
import { Row } from 'uiSrc/components/base/layout/flex'
17+
import { Spacer } from 'uiSrc/components/base/layout'
1618
import { BaseProps } from '../interfaces'
1719
import { useChangeEditorType } from '../../change-editor-type-button'
1820

@@ -64,8 +66,8 @@ const MonacoEditor = (props: BaseProps) => {
6466
editorWrapperClassName={styles.editorWrapper}
6567
onEditorDidMount={onEditorDidMount}
6668
/>
67-
68-
<EuiFlexItem className={styles.actions}>
69+
<Spacer size="m" />
70+
<Row justify="end" gap="m" className={styles.actions}>
6971
<SecondaryButton
7072
onClick={switchEditorType}
7173
data-testid="json-data-cancel-btn"
@@ -80,7 +82,7 @@ const MonacoEditor = (props: BaseProps) => {
8082
>
8183
Overwrite Data
8284
</PrimaryButton>
83-
</EuiFlexItem>
85+
</Row>
8486
</div>
8587
)
8688
}

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/styles.module.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -283,21 +283,6 @@
283283
}
284284
}
285285

286-
.actions {
287-
margin-top: 1em;
288-
display: flex;
289-
flex-direction: row !important;
290-
width: 100%;
291-
justify-content: flex-end;
292-
293-
button {
294-
295-
&:first-of-type {
296-
margin-right: 1em;
297-
}
298-
}
299-
}
300-
301286
.editor, .editorWrapper {
302287
// Using 100% height starts a weird Monaco animation,
303288
// which causes the editor to overflow its container.

0 commit comments

Comments
 (0)