Skip to content

Commit 464c02a

Browse files
committed
fix(ui): added spacing between the buttons in the JSON key override popover
1 parent ce0a625 commit 464c02a

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/components/add-item/ConfirmOverwrite.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
} from 'uiSrc/components/base/forms/buttons'
88
import { Text } from 'uiSrc/components/base/text'
99
import { RiPopover } from 'uiSrc/components/base'
10-
import styles from '../../styles.module.scss'
10+
import { Row } from 'uiSrc/components/base/layout/flex'
11+
import { Spacer } from 'uiSrc/components/base/layout'
1112

1213
interface ConfirmOverwriteProps {
1314
isOpen: boolean
@@ -37,8 +38,8 @@ const ConfirmOverwrite = ({
3738
You already have the same JSON key. If you proceed, a value of the
3839
existing JSON key will be overwritten.
3940
</Text>
40-
41-
<div className={styles.confirmDialogActions}>
41+
<Spacer size="l" />
42+
<Row justify="end" gap="m">
4243
<SecondaryButton
4344
aria-label="Cancel"
4445
size="small"
@@ -56,7 +57,7 @@ const ConfirmOverwrite = ({
5657
>
5758
Overwrite
5859
</PrimaryButton>
59-
</div>
60+
</Row>
6061
</RiPopover>
6162
)
6263

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,20 +269,6 @@
269269
max-width: none;
270270
}
271271

272-
.confirmDialogActions {
273-
display: flex;
274-
justify-content: flex-end;
275-
margin-top: 16px;
276-
277-
button {
278-
margin-left: 8px;
279-
280-
&:first-of-type {
281-
margin-left: 0;
282-
}
283-
}
284-
}
285-
286272
.actions {
287273
margin-top: 1em;
288274
display: flex;

0 commit comments

Comments
 (0)