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

433
Visualizações
React & MUI - Collapse not fully showing flexbox content overflows

I am new to React (v18.1) and MUI (v5.8.4) and I am trying to create a Search modal. I have a simple layout that I made with flexboxes using the Box element from MUI. It is composed of a Searchbar on top, a collapsible filters section, a main content box to display the search results and a footer. There is an issue with the Collapse section: when the main section content starts to overflow the collapsible section size starts to reduce. The more it overflows, the smaller the collapse section will be.

With few items (expected behavior) vs With many items (unexpected behavior)
Sorry for the ugly links I have not enough reputation to embed the images

I have made a simple CodeSandbox Example where you can play with the itemCount and trigger the collapse with the toggle button to reproduce the issue

What I have tried:

  • I have tried many CSS rules to overcome this issue and none worked also I am no CSS pro
  • I have tried to replace the content on the main section which is a List by various stuff such as span div or raw text and nothing worked

Any help or tips to improve the overall layout and fix the issue are welcome

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