Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

287
Views
Decrease table row height of mud (material-ui) below the minimum height?

I am trying to decrease the height of a react mui table row with the following methods:

Firstly, in index.css:

tr{
    height:20px;
}

Secondly, in source code app.js:

...
<TableRow style={{height: 5}}>
    <TableCell>
        hello
    </TableCell>
    <TableCell>
        hello
    </TableCell>
</TableRow>
...

And the makeStyle and useStyle methods of @mui/styles.

All the methods can succeed, but the problem is that, if I decrease the height below a certain value, then it stops working. All I have in the table are texts, and the program refuses to decrease table row height even when we can still see a wide margin between the text and the table row separation line.

Is there a way to force mui to decrease the row height below this value? Do we have the option to decrease the height all the way to zero (even though that will make text invisible)?

almost 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!