From 494c5d28c8093879b7531b33fa240f700567f171 Mon Sep 17 00:00:00 2001 From: GreenAsJade Date: Tue, 13 Aug 2024 19:05:10 +0930 Subject: [PATCH] Added a highlighting style for canned warning action mod log entries --- src/ogs.styl | 2 +- src/views/User/ModLog.styl | 8 ++++++-- src/views/User/ModLog.tsx | 10 +++++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/ogs.styl b/src/ogs.styl index 1bedd340d6..8e0d68088d 100644 --- a/src/ogs.styl +++ b/src/ogs.styl @@ -150,7 +150,7 @@ light.primary = #2480FF light.danger = #FFA600 //light.success = #00C600 light.success = #2AD131 -light.success = #32C738 +light.success = #32C738 // make up your mind? ;) //light.info = #A41EFF light.info = #C46EFF light.info = #C376FE // make up your mind? ;) diff --git a/src/views/User/ModLog.styl b/src/views/User/ModLog.styl index b15e0a5ecf..18fb365200 100644 --- a/src/views/User/ModLog.styl +++ b/src/views/User/ModLog.styl @@ -32,9 +32,13 @@ } .acknowledgement-event { - themed background shade4; - color green; + themed background shade5; + themed color success; font-size: smaller; font-style: italic; } + + .warning-event { + themed color danger; + } } \ No newline at end of file diff --git a/src/views/User/ModLog.tsx b/src/views/User/ModLog.tsx index 2857927636..64dc3c676e 100644 --- a/src/views/User/ModLog.tsx +++ b/src/views/User/ModLog.tsx @@ -64,7 +64,15 @@ export function ModLog(props: ModLogProps): JSX.Element { X.action.includes("acknowledgement") ? "acknowledgement-event" : "" } > -
+
{X.incident_report?.id ? ( R{X.incident_report.id.toString().substr(-3)}