diff --git a/assets/js/views/Log.vue b/assets/js/views/Log.vue index f4ec80998..00b227da9 100644 --- a/assets/js/views/Log.vue +++ b/assets/js/views/Log.vue @@ -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); } diff --git a/util/logstash/log_test.go b/util/logstash/log_test.go index c5dc8f6b3..53193e022 100644 --- a/util/logstash/log_test.go +++ b/util/logstash/log_test.go @@ -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())