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

267
Visualizações
Material UI Scrollable Tabs inside Drawer content

I have a material-ui drawer based on the mini variant drawer. Inside the drawer content, I have a set of tabs based on the prevent scroll buttons tabs. I'm using material-ui version 4.12.3.

Unfortunately, the tabs inside the drawer expand beyond the width of the screen and add a horizontal scrollbar. See this codesandbox for the code and example. I would have expected the tabs to just fill the width of the drawer content and to become scrollable, like in the material-ui example.

Is there any way to make those tabs work as they do in the material-ui example linked above, while keeping the drawer functionality as it is?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Posting an answer here that expands on NearHuscarl's comment to close this off.

Adding overflowX: hidden to the content div in my example fixed it. See this codesandbox for the updated code.

The issue was happening because the parent of the scrollable tabs needs to have overflowX: hidden in order for the horizontal scroll functionality to work. Otherwise the scrollable tabs just causes its parent's width to expand. More details on this stackoverflow answer linked by NearHuscarl

about 4 years ago · Juan Pablo Isaza Relatório
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