Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

216
Vistas
Card Height adjusting on Button Click React

How to adjust this one whenever I click "Create Invoice" it will render a spinner with "Creating invoice". However the height of the card is also changing. I want it to be in fixed position

Please check GIF https://imgur.com/a/ymJSnpy

const Loading = () => {
  return (
    <div className="loading" style={divStyle}>
      <h4>Creating Invoice
        <Spinner size="15px" color="#6491c6"/></h4>
    </div> 

  )}```


about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

could you share what are you putting in loading class and divStyle ? I think you should add height of 40 and center it vertically if it's not centred on one of those classes:

display: flex;
  align-items: center;
  height: 40px;
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda