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

163
Visualizações
Determine input's width based on number of siblings

I have created this component in App.js as a sample, which includes a wrapper form-control__container, a <Textfield /> and a suffix wrapper for the buttons. Okay, the number of buttons is not always two, it can change depending where the component would be used. And this is where the problem comes. Considering the dynamic number of buttons, how can I determine the width of the input, so that when the input text is too long, it won't overlap with the buttons? Or, in this case, I believe a good idea would be to add padding-right instead of giving the input a width which would require some more customization afterwards.

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