1
- import { EuiText , useEuiTheme } from '@elastic/eui' ;
1
+ import { useEuiTheme } from '@elastic/eui' ;
2
2
import type { SerializedStyles } from '@emotion/react' ;
3
3
import { css } from '@emotion/react' ;
4
4
import type { ReactNode , RefObject } from 'react' ;
@@ -15,7 +15,6 @@ import GridLayout from 'react-grid-layout';
15
15
import { useWindowDimensions } from '../../hooks/window-dimensions' ;
16
16
import { LocalStorage } from '../../lib/local-storage' ;
17
17
import { GridItem } from '../grid-item' ;
18
- import { Scrollable } from '../scrollable' ;
19
18
20
19
interface GridItemProps {
21
20
itemId : string ;
@@ -60,14 +59,6 @@ const Grid: React.FC<GridProps> = (props: GridProps): ReactNode => {
60
59
` ) ;
61
60
} , [ windowDimensions , euiTheme ] ) ;
62
61
63
- const gridItemTextStyles = css ( {
64
- fontFamily : euiTheme . font . familyCode ,
65
- fontSize : euiTheme . size . m ,
66
- lineHeight : 'initial' ,
67
- paddingLeft : euiTheme . size . s ,
68
- paddingRight : euiTheme . size . s ,
69
- } ) ;
70
-
71
62
/**
72
63
* When grid items are resized the increment is based on the the layout size.
73
64
* Horizontal resize increments are based on the number of columns.
@@ -216,9 +207,7 @@ const Grid: React.FC<GridProps> = (props: GridProps): ReactNode => {
216
207
titleBarText = { item ! . title }
217
208
onClose = { onGridItemClose }
218
209
>
219
- < Scrollable >
220
- < EuiText css = { gridItemTextStyles } > { item ! . content } </ EuiText >
221
- </ Scrollable >
210
+ { item ! . content }
222
211
</ GridItem >
223
212
) ;
224
213
} ) ;
0 commit comments