Skip to content

Conversation

@Ghesselink
Copy link
Contributor

'The right side of the error text is hidden in report. Making difficult to understand what the problem is'

https://bsi-technicalservices.atlassian.net/browse/VAL-203

The issue appeared only when the browser was not maximized in the screen. If it was (or in fullscreen), a scroll bar appeared below.
A solution is to allow only for 75 characters in a row of a message and, if exceeded, display the rest of the text in a new row.

Now, the result does not overflow.
example

@aothms
Copy link
Member

aothms commented Jun 16, 2023

Did you experiment with overflow-wrap: break-word; in CSS. Manually breaking based on actual characters in JS has some downsides: not every character has same width and changes selection behaviour.

@Ghesselink
Copy link
Contributor Author

overflow-wrap: break-word;
Didn't work unfortunately. I've tried a couple of things, in the end what worked is modifying the whitespace and wordBreak variable.

          ".pre": {
            whiteSpace: 'pre-wrap',
            wordBreak: 'break-word',
          }

example

@aothms aothms merged commit 8ce88cc into AECgeeks:development Jun 17, 2023
@aothms
Copy link
Member

aothms commented Jun 17, 2023

Looks good, but have a look at how it looks with syntax errors as well please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants