Make log messages wrap
This commit is contained in:
parent
7e04b635cd
commit
e35219c1cf
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Reference in a new issue