Skip to content

Commit

Permalink
Merge pull request #2776 from GreenAsJade/deemphasise_acks_in_mod_log
Browse files Browse the repository at this point in the history
Clarify "acknowledgement" severity warnings
  • Loading branch information
anoek authored Aug 12, 2024
2 parents 3b9c73a + a114796 commit 6c872aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/views/User/ModLog.styl
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@
white-space: pre-wrap;
word-wrap: break-word;
}

.acknowledgement-event {
themed background shade4;
color green;
font-size: smaller;
font-style: italic;
}
}
7 changes: 6 additions & 1 deletion src/views/User/ModLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export function ModLog(props: ModLogProps): JSX.Element {
header: "",
className: "",
render: (X) => (
<div>
<div
className={
// "acknowledgements" are not warnings, so need de-emphasis
X.action.includes("acknowledgement") ? "acknowledgement-event" : ""
}
>
<div className="action">
{X.incident_report?.id ? (
<Link to={`/reports-center/all/${X.incident_report.id}`}>
Expand Down

0 comments on commit 6c872aa

Please sign in to comment.