Skip to content

Commit

Permalink
Log UI: minor improvements (#13453)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Apr 16, 2024
1 parent 0a047a8 commit 341101c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion assets/js/views/Log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export default {
}
@keyframes fadeIn {
from {
opacity: 0;
opacity: 0.3;
}
to {
opacity: var(--opacity);
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion util/logstash/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 341101c

Please sign in to comment.