Skip to content

Commit 7d34422

Browse files
author
Kristiyan Ivanov
authored
Fe/feature/ri 7233 key details on web and full screen do not expand to the width of the container and do not have space between each other (#4762)
* RI-7233 - key details on web and full screen do not expand to the width of the container and do not have space between each other - fixed spacing between name and ttl, and below the same row * RI-7233 - key details on web and full screen do not expand to the width of the container and do not have space between each other - fixed spacing between different input components * RI-7233 - key details on web and full screen do not expand to the width of the container and do not have space between each other - fixed styles to stretch from one end to the other
1 parent 1ccfce9 commit 7d34422

File tree

8 files changed

+17
-8
lines changed

8 files changed

+17
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import styled from 'styled-components'
2+
3+
export const ContentFields = styled.div`
4+
margin: 0 auto;
5+
width: 100%;
6+
`

redisinsight/ui/src/pages/browser/components/add-key/AddKey.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import AddKeySet from './AddKeySet'
3434
import AddKeyList from './AddKeyList'
3535
import AddKeyReJSON from './AddKeyReJSON'
3636
import AddKeyStream from './AddKeyStream'
37+
import { ContentFields } from './AddKey.styles'
3738

3839
import styles from './styles.module.scss'
3940

@@ -147,7 +148,7 @@ const AddKey = (props: Props) => {
147148
)}
148149
</FlexItem>
149150
<div className={cx('eui-yScroll', styles.scrollContainer)}>
150-
<div className={styles.contentFields}>
151+
<ContentFields>
151152
<AddKeyCommonFields
152153
typeSelected={typeSelected}
153154
onChangeType={onChangeType}
@@ -198,7 +199,7 @@ const AddKey = (props: Props) => {
198199
{typeSelected === KeyTypes.Stream && (
199200
<AddKeyStream onCancel={closeAddKeyPanel} {...defaultFields} />
200201
)}
201-
</div>
202+
</ContentFields>
202203
</div>
203204
</Col>
204205
<div id="formFooterBar" className="formFooterBar" />

redisinsight/ui/src/pages/browser/components/add-key/AddKeyCommonFields/AddKeyCommonFields.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { FlexItem, Row } from 'uiSrc/components/base/layout/flex'
77
import { FormField } from 'uiSrc/components/base/forms/FormField'
88
import { RiSelect } from 'uiSrc/components/base/forms/select/RiSelect'
99
import { FormFieldset } from 'uiSrc/components/base/forms/fieldset'
10+
import { Spacer } from 'uiSrc/components/base/layout/spacer'
1011
import { AddCommonFieldsFormConfig as config } from '../constants/fields-config'
1112

1213
import styles from './styles.module.scss'
@@ -47,7 +48,7 @@ const AddKeyCommonFields = (props: Props) => {
4748

4849
return (
4950
<div className={styles.wrapper}>
50-
<Row className={styles.container}>
51+
<Row className={styles.container} gap="m">
5152
<FlexItem grow>
5253
<FormFieldset
5354
legend={{ children: 'Select key type', display: 'hidden' }}
@@ -85,6 +86,7 @@ const AddKeyCommonFields = (props: Props) => {
8586
</FormField>
8687
</FlexItem>
8788
</Row>
89+
<Spacer size="m" />
8890
<FormField label={config.keyName.label}>
8991
<EuiFieldText
9092
fullWidth

redisinsight/ui/src/pages/browser/components/add-key/AddKeyHash/AddKeyHash.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const AddKeyHash = (props: Props) => {
167167
onClickAdd={addField}
168168
>
169169
{(item, index) => (
170-
<Row align="center">
170+
<Row align="center" gap="m">
171171
<FlexItem grow={2}>
172172
<FormField>
173173
<EuiFieldText

redisinsight/ui/src/pages/browser/components/add-key/AddKeyZset/AddKeyZset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const AddKeyZset = (props: Props) => {
186186
onClickAdd={addMember}
187187
>
188188
{(item, index) => (
189-
<Row align="center">
189+
<Row align="center" gap="m">
190190
<FlexItem grow>
191191
<FormField>
192192
<EuiFieldText

redisinsight/ui/src/pages/browser/components/add-multiple-fields/AddMultipleFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const AddMultipleFields = <T,>(props: Props<T>) => {
2828
className={cx('flexItemNoFullWidth', 'inlineFieldsNoSpace', styles.row)}
2929
grow
3030
>
31-
<Row align="center" gap="s">
31+
<Row align="center" gap="m">
3232
<FlexItem grow>{child}</FlexItem>
3333
<FlexItem>
3434
<RiTooltip content="Remove" position="left">

redisinsight/ui/src/pages/browser/modules/key-details/components/hash-details/add-hash-fields/AddHashFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const AddHashFields = (props: Props) => {
173173
onClickAdd={addField}
174174
>
175175
{(item, index) => (
176-
<Row align="center">
176+
<Row align="center" gap="m">
177177
<FlexItem grow={2}>
178178
<FormField>
179179
<EuiFieldText

redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const StreamEntryFields = (props: Props) => {
166166
onClickAdd={addField}
167167
>
168168
{(item, index) => (
169-
<Row align="center">
169+
<Row align="center" gap='m'>
170170
<FlexItem className={styles.fieldItemWrapper} grow>
171171
<FormField>
172172
<EuiFieldText

0 commit comments

Comments
 (0)