From 7e9b4200717773c2575e1a2bfdb3a31f937df347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Engstr=C3=B6m?= Date: Fri, 4 Oct 2019 12:47:39 +0200 Subject: [PATCH] fix(Table): fix table breaking due to dynamic style table breaking due to bug with dynamic style in media query bug in jss 10 --- src/components/table/table-styles.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/table/table-styles.jsx b/src/components/table/table-styles.jsx index bbfa4014..46ba9430 100644 --- a/src/components/table/table-styles.jsx +++ b/src/components/table/table-styles.jsx @@ -19,10 +19,9 @@ export default theme => { textAlign: 'left', borderCollapse: 'collapse', borderColor: palette.gray7, - minWidth: 'auto', - - [mixins.media('md')]: { - minWidth: props => props.minWidth, + minWidth: props => props.minWidth, + [mixins.maxMedia('md')]: { + minWidth: 'auto', }, }, tableLayoutFixed: {