Log UI: minor improvements (#13453)

This commit is contained in:
Michael Geers 2024-04-16 07:58:02 +02:00 • committed by GitHub
parent 0a047a82ad
commit 341101c6b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -291,7 +291,7 @@ export default {
}
@keyframes fadeIn {
from {
opacity: 0;
opacity: 0.3;
}
to {
opacity: var(--opacity);
@ -304,7 +304,17 @@ export default {
animation-duration: 1s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
text-indent: 1rem hanging;
/* smaller exception for mobile */
font-size: 8px;
}
@media (min-width: 576px) {
.log {
/* default code size */
font-size: 0.875em;
}
}
.log-warn {
color: var(--bs-warning);
}

View file

@ -30,7 +30,7 @@ func TestLog(t *testing.T) {
assert.Equal(t, []string{s1, s2, s3}, log.All(nil, jww.LevelTrace, 0))
assert.Equal(t, []string{s3}, log.All(nil, jww.LevelTrace, 1))
assert.Nil(t, log.All(nil, jww.LevelFatal, 0))
assert.Equal(t, []string{}, log.All(nil, jww.LevelFatal, 0))
assert.Equal(t, idx, log.data, "data should not be changed after All() call")
assert.Equal(t, []string{"test1", "test2"}, log.Areas())