rowStyle height does not work for anything under 49px in height
See original GitHub issueDescribe the bug
rowStyle={ height: ''}
does not work properly. If you set the height to anything under 49 pixels this fails to render properly.
To Reproduce Steps to reproduce the behavior:
- Create a new material table or go to https://material-table.com/#/docs/features/styling
- Add
options={{ rowStyle: { height: '10px'}}
in your table or the example table in the official docs - See that the table row height does not change.
Expected behavior Previously this was working, if I set the row height to 10px it should apply that style.
Screenshots
Desktop (please complete the following information):
-
OS: MacOS Mojave 10.14.4
-
Browser: Chrome
-
Version: 74.0.3729.169 (Official Build) (64-bit)
-
Browser: Firefox
-
Version: 66.0.5
Additional context There is nothing indicating that another style is overriding this rowStyle change, as shown in the screenshot provided.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Fixed height on <tr> when <table> height is 100%
"The height of the rows should be set at 49px instead of dividing themselves evenly to fill the entire space." Problems.
Read more >RowStyle.Height Property (System.Windows.Forms)
Gets or sets the height of a row. ... The Height property will take on different meanings depending on the SizeType property. The...
Read more >Column Header: Styling & Appearance Feature of our Datagrid
The height for the row containing the column label header. If not specified the default is 25px. groupHeaderHeight, The height for the rows...
Read more >Deep dive CSS: font metrics, line-height and vertical-align
An introduction to the inline formatting context. Explores line-height and vertical-align properties, as well as the font metrics. Understand how text is ......
Read more >CSS PX to EM Conversion - W3Schools
In the table below, select a body font size in pixels (px) to display a complete "px to em and percent" conversion table....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found a solution for my use, I need to edit this property to change the size of the table header and table body: .MuiTableCell-root { height: 10px !important; padding: 0px !important; font-size: 0.7rem !important; }
.MuiButtonBase-root{ height: 10px !important; }
with this you can adjust for you
Hi @mbrn,
Thanks for taking up this enhancement. may I knw if there is any update about this issue? 😃