Skip to content

Commit

Permalink
highlight warnings in mod timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jan 28, 2025
1 parent d6bde46 commit d892fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api/src/main/ui/ModTimelineUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ final class ModTimelineUi(helpers: Helpers)(
"mod-timeline__event__action--undo" -> Modlog.isUndo(e.action)
)
):
if Modlog.isWarning(e) then "sends warning"
if Modlog.isWarning(e) then strong("sends warning")
else e.showAction
,
div(cls := "mod-timeline__text"):
Expand Down
3 changes: 3 additions & 0 deletions ui/mod/css/_mod-timeline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
font-weight: bold;
}
}
.mod-timeline__event__action--warning strong {
color: $c-brag;
}

@media (max-width: at-most($large)) {
.mod-timeline {
Expand Down

0 comments on commit d892fc0

Please sign in to comment.