Skip to content

Commit 90639ba

Browse files
committed
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 2ce65c9 commit 90639ba

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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" />

0 commit comments

Comments
 (0)