From 5ffb8f8661db334db7dada32a12a68ed34ea402b Mon Sep 17 00:00:00 2001 From: kjmartens Date: Fri, 3 Jan 2025 13:52:56 -0600 Subject: [PATCH] fix: fixed class override issue in CP --- packages/plugin/src/Resources/css/cp/logs/logs.css | 2 +- packages/plugin/src/templates/logs/error.twig | 2 +- packages/plugin/src/templates/logs/index.twig | 2 +- packages/styles/src/cp/logs/logs.scss | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/plugin/src/Resources/css/cp/logs/logs.css b/packages/plugin/src/Resources/css/cp/logs/logs.css index 154350f7e..0ba481444 100644 --- a/packages/plugin/src/Resources/css/cp/logs/logs.css +++ b/packages/plugin/src/Resources/css/cp/logs/logs.css @@ -1 +1 @@ -.badge{display:inline-block;padding:0 5px;box-sizing:border-box;border-radius:3px;color:#fff;font-size:11px;font-weight:bold}.badge.log-level-debug{background-color:#ccc}.badge.log-level-info{background-color:#6c757d}.badge.log-level-notice{background-color:#28a745}.badge.log-level-warning{background-color:#ffc107}.badge.log-level-error{background-color:#dc3545}.badge.log-level-critical{background-color:#dc3545}.badge.log-level-alert{background-color:#dc3545}.badge.log-level-emergency{background-color:#dc3545}.log-message{color:#b1b1b1;width:70%;word-break:break-word;overflow-wrap:break-word} +.log-badge{display:inline-block;padding:0 5px;box-sizing:border-box;border-radius:3px;color:#fff;font-size:11px;font-weight:bold}.log-badge.log-level-debug{background-color:#ccc}.log-badge.log-level-info{background-color:#6c757d}.log-badge.log-level-notice{background-color:#28a745}.log-badge.log-level-warning{background-color:#ffc107}.log-badge.log-level-error{background-color:#dc3545}.log-badge.log-level-critical{background-color:#dc3545}.log-badge.log-level-alert{background-color:#dc3545}.log-badge.log-level-emergency{background-color:#dc3545}.log-message{color:#b1b1b1;width:70%;word-break:break-word;overflow-wrap:break-word} diff --git a/packages/plugin/src/templates/logs/error.twig b/packages/plugin/src/templates/logs/error.twig index 069419012..5dcd86c11 100644 --- a/packages/plugin/src/templates/logs/error.twig +++ b/packages/plugin/src/templates/logs/error.twig @@ -45,7 +45,7 @@ {{ line.logger }} - + {{ line.level|lower }} diff --git a/packages/plugin/src/templates/logs/index.twig b/packages/plugin/src/templates/logs/index.twig index 55545e90c..8c83ba3e0 100644 --- a/packages/plugin/src/templates/logs/index.twig +++ b/packages/plugin/src/templates/logs/index.twig @@ -26,7 +26,7 @@ {{ line.logger }} - + {{ line.level|lower }} diff --git a/packages/styles/src/cp/logs/logs.scss b/packages/styles/src/cp/logs/logs.scss index f0c0f1d6d..823619e54 100644 --- a/packages/styles/src/cp/logs/logs.scss +++ b/packages/styles/src/cp/logs/logs.scss @@ -1,10 +1,8 @@ -.badge { +.log-badge { display: inline-block; padding: 0 5px; box-sizing: border-box; - border-radius: 3px; - color: #fff; font-size: 11px; font-weight: bold;