Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
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 answers
Answer question

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 Report

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 Report

0

Try to remove :

white-space: nowrap;

from header-frame class

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!