better error handling

This commit is contained in:
Joeri Exelmans 2025-05-27 12:44:57 +02:00
parent 7edf44f107
commit 428e8cd298
8 changed files with 66 additions and 34 deletions

View file

@ -1,10 +1,26 @@
.editor {
padding: 2px;;
padding: 2px;
position: relative;
}
.editor.error {
border: 1px solid red;
display: inline-block;
}
.errorMessage {
display: none;
position: absolute;
color: darkred;
background-color: pink;
margin-top: 4px;
z-index: 10;
}
.editor:hover > .errorMessage {
display: block;
/* z-index: 9999; */
}
.editor.unknown {
border: 1px dashed dodgerblue;
display: inline-block;