Skip to content

Commit 3d1f994

Browse files
authored
fix(EuiTableRowCell): fix mobile mobileOptions.width and mobileOptions.maxWidth styles (#9442)
1 parent 03270fc commit 3d1f994

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**Bug fixes**
2+
3+
- Fixed `mobileOptions.width` and `mobileOptions.maxWidth` props support in the EuiTableRowCell component

packages/eui/src/components/table/table_row_cell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ export const EuiTableRowCell: FunctionComponent<Props> = ({
206206
};
207207

208208
const inlineWidthStyles = resolveWidthPropsAsStyle(_style, {
209-
width: getResponsiveWidth(width, mobileOptions?.minWidth),
209+
width: getResponsiveWidth(width, mobileOptions?.width),
210210
minWidth: getResponsiveWidth(minWidth, mobileOptions?.minWidth),
211-
maxWidth: getResponsiveWidth(maxWidth, mobileOptions?.minWidth),
211+
maxWidth: getResponsiveWidth(maxWidth, mobileOptions?.maxWidth),
212212
});
213213

214214
const Element = setScopeRow ? 'th' : 'td';

0 commit comments

Comments
 (0)