Skip to content

Commit

Permalink
use pre for error node, remove border from it
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Apr 12, 2023
1 parent dd5d2ba commit 38e6431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web_src/css/markup/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@

.markup-block-error {
display: block !important; /* override fomantic .ui.form .error.message {display: none} */
border: 1px solid var(--color-error-border) !important;
border: none !important;
margin-bottom: 0 !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
Expand Down
4 changes: 2 additions & 2 deletions web_src/js/markup/common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function displayError(el, err) {
el.classList.remove('is-loading');
const errorNode = document.createElement('div');
errorNode.setAttribute('class', 'ui message error markup-block-error gt-mono');
const errorNode = document.createElement('pre');
errorNode.setAttribute('class', 'ui message error markup-block-error');
errorNode.textContent = err.str || err.message || String(err);
el.before(errorNode);
el.setAttribute('data-render-done', 'true');
Expand Down

0 comments on commit 38e6431

Please sign in to comment.