From 1243729899082a71b3a3efb759df1478d9ea5c83 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Oct 2021 13:49:34 +0200 Subject: Refactor log level choice --- .../src/app/+admin/system/logs/logs.component.html | 7 ++-- .../src/app/+admin/system/logs/logs.component.scss | 45 +++++++++++----------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/client/src/app/+admin/system/logs/logs.component.html b/client/src/app/+admin/system/logs/logs.component.html index 3d38d6a76..b2c7f84bc 100644 --- a/client/src/app/+admin/system/logs/logs.component.html +++ b/client/src/app/+admin/system/logs/logs.component.html @@ -24,10 +24,7 @@ *ngIf="!isAuditLog()" > - {{ levelChoice.label }} - {{ levelChoice.label }} - {{ levelChoice.label }} - {{ levelChoice.label }} + {{ levelChoice.label }} @@ -38,6 +35,8 @@
Loading...
+
No log.
+
{{ log.level }} diff --git a/client/src/app/+admin/system/logs/logs.component.scss b/client/src/app/+admin/system/logs/logs.component.scss index b78f4c47f..fefa7efc2 100644 --- a/client/src/app/+admin/system/logs/logs.component.scss +++ b/client/src/app/+admin/system/logs/logs.component.scss @@ -59,7 +59,29 @@ } } -@media screen and (max-width: $small-view) { +.level-choice { + font-size: 80%; + vertical-align: text-top; + + &.debug { + color: rgb(197, 197, 197); + } + + &.info { + color: rgb(136, 204, 247); + } + + &.warn { + color: rgb(252, 166, 7); + } + + &.error { + color: rgb(250, 5, 5); + } + +} + +@include on-small-main-col { .header { flex-direction: column; @@ -77,24 +99,3 @@ } } } - -@media screen and (max-width: #{$small-view + $menu-width}) { - :host-context(.main-col:not(.expanded)) { - .header { - flex-direction: column; - - .peertube-select-container, - ng-select, - my-button { - @include margin-left(0 !important); - - width: 100% !important; - margin-bottom: 10px !important; - } - - my-button { - text-align: center; - } - } - } -} -- cgit v1.2.3