Log UI: minor improvements (#13453)
This commit is contained in:
parent
0a047a82ad
commit
341101c6b8
2 changed files with 12 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue