Make log messages wrap

This commit is contained in:
Tobias Berger 2021-09-27 14:40:55 +02:00
parent 7e04b635cd
commit e35219c1cf

View file

@ -23,6 +23,16 @@
addMessage("message" + $messages.length);
}}>Add Message</button
>
<button
on:click={() => {
addMessage("message".repeat(100) + $messages.length);
}}>Add Long Message</button
>
<button
on:click={() => {
addMessage("message ".repeat(100) + $messages.length);
}}>Add Long Message (spaced)</button
>
<button
on:click={() => {
addMessage("warn" + $messages.length, MessageType.warning);
@ -65,6 +75,8 @@
> li {
padding: 1em 0.4em;
overflow-wrap: break-word;
&.odd {
background-color: var(--color-med);
}