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

158
Vistas
Text doesn't break in special case

I have a problem that the text doesn't break in a popup made with Vue.js which is included in the header like this:

enter image description here

The text breaks normally if I include the popup into the main screen, but doesn't if I include it into the header. I have also drawn border around the <p> element which contains the text and the border is drawn correctly.

Here is the sample code: https://codesandbox.io/s/cold-feather-3zi3d?file=/src/components/BasicModal.vue

about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

You could add the following style rule :

white-space: pre-wrap;

in :

<p slot="modal-paragraph" style="border-style: solid;whitespace:pre-wrap">
about 4 years ago · Juan Pablo Isaza Denunciar

0

The class .header-frame is adding the css:

.header-frame {
  white-space: nowrap;
}

This is the reason for which the text does not break when inside the header.

Try adding

white-space: pre-wrap;

or

white-space: initial;
about 4 years ago · Juan Pablo Isaza Denunciar

0

Try to remove :

white-space: nowrap;

from header-frame class

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