@@ -3,6 +3,7 @@ import { IBorderValue } from '@/designer-components/_settings/utils/border/inter
33import { IShadowValue } from '@/designer-components/_settings/utils/shadow/interfaces' ;
44import { getBorderStyle } from '@/designer-components/_settings/utils/border/utils' ;
55import { getShadowStyle } from '@/designer-components/_settings/utils/shadow/utils' ;
6+ import { IDimensionsValue } from '@/designer-components/_settings/utils/index' ;
67
78const tableClassNames = {
89 shaTable : 'sha-table' ,
@@ -46,6 +47,7 @@ export const useMainStyles = createStyles(({ css, cx, token, prefixCls, iconPref
4647 rowHoverBackgroundColor,
4748 rowSelectedBackgroundColor,
4849 border,
50+ dimensions,
4951 backgroundColor,
5052 headerFontFamily,
5153 headerFontSize,
@@ -94,6 +96,7 @@ export const useMainStyles = createStyles(({ css, cx, token, prefixCls, iconPref
9496 rowBorder ?: string ;
9597 rowBorderStyle ?: IBorderValue ;
9698 boxShadow ?: string ;
99+ dimensions ?: IDimensionsValue ;
97100 sortableIndicatorColor ?: string ;
98101 striped ?: boolean ;
99102 cellBorderColor ?: string ;
@@ -215,6 +218,11 @@ export const useMainStyles = createStyles(({ css, cx, token, prefixCls, iconPref
215218 position: relative;
216219 ` : '' }
217220
221+
222+ ${ dimensions ?. height ? `height: ${ dimensions . height } ;` : '' }
223+ ${ dimensions ?. minHeight ? `min-height: ${ dimensions . minHeight } ;` : '' }
224+ ${ dimensions ?. maxHeight ? `max-height: ${ dimensions . maxHeight } ;` : '' }
225+
218226 .${ shaSpanCenterVertically } {
219227 display : flex;
220228 align-items : center;
@@ -229,7 +237,6 @@ export const useMainStyles = createStyles(({ css, cx, token, prefixCls, iconPref
229237 border-spacing : 0 ;
230238 display : inline-block;
231239 min-width : 100% ;
232- overflow-x : auto;
233240
234241 /* Background applied to table ensures it covers all rows when scrolling with freezeHeaders */
235242 ${ backgroundColor ? `background: ${ backgroundColor } ;` : 'background: white;' }
0 commit comments