Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

289
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda