Skip to content

Commit bbdca7d

Browse files
RI-7687: fix double scroll issue on the RDI statistics page (#5172)
* RI-7687: fix double scroll issue on the RDI statistics page * RI-7687: fix double scroll issue on the RDI statistics page
1 parent 6486dbe commit bbdca7d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

redisinsight/ui/src/templates/rdi-instance-page-template/RdiInstancePageTemplate.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import { ExplorePanelTemplate } from 'uiSrc/templates'
3-
4-
import styles from './styles.module.scss'
3+
import { RdiInstancePageContentContainer } from 'uiSrc/templates/rdi-instance-page-template/styles'
54

65
export interface Props {
76
children: React.ReactNode
@@ -11,9 +10,9 @@ const RdiInstancePageTemplate = (props: Props) => {
1110
const { children } = props
1211

1312
return (
14-
<div className={styles.content}>
13+
<RdiInstancePageContentContainer>
1514
<ExplorePanelTemplate>{children}</ExplorePanelTemplate>
16-
</div>
15+
</RdiInstancePageContentContainer>
1716
)
1817
}
1918

redisinsight/ui/src/templates/rdi-instance-page-template/styles.module.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
height: 100%;
33
padding-bottom: 16px;
44
}
5-
6-
.content {
7-
height: calc(100% - 130px);
8-
flex: 1
9-
}
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+
import { FlexItem } from 'uiSrc/components/base/layout/flex'
3+
4+
export const RdiInstancePageContentContainer = styled(FlexItem)`
5+
height: calc(100% - 210px);
6+
`

0 commit comments

Comments
 (0)