Skip to content

Commit

Permalink
mod timeline style undos
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 16, 2024
1 parent 43f41b0 commit ee6aa49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion modules/api/src/main/ui/ModTimelineUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ final class ModTimelineUi(helpers: Helpers)(
cls := List(
"mod-timeline__event__action" -> true,
s"mod-timeline__event__action--${e.action}" -> true,
"mod-timeline__event__action--sentence" -> Modlog.isSentence(e.action)
"mod-timeline__event__action--sentence" -> Modlog.isSentence(e.action),
"mod-timeline__event__action--undo" -> Modlog.isUndo(e.action)
)
)(
e.showAction
Expand Down
15 changes: 8 additions & 7 deletions ui/mod/css/_mod-timeline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
}
.user-link {
flex: 0 0 auto;
&:has(i.moderator) {
&,
i {
color: $c-brag;
}
}
}
}
.mod-timeline__event--modlog:has(i.moderator) {
.user-link,
.user-link i {
color: $c-brag;
}
}
.mod-timeline__event__action {
Expand All @@ -65,7 +65,8 @@
font-size: 0.9em;
}
.mod-timeline__event:has(.mod-timeline__event__action--modMessage),
.mod-timeline__event:has(.mod-timeline__event__action--sentence) {
.mod-timeline__event:has(.mod-timeline__event__action--sentence),
.mod-timeline__event:has(.mod-timeline__event__action--undo) {
padding: 0.5em 1em;
border-left: 4px solid $c-brag;
margin-left: -4px;
Expand Down

0 comments on commit ee6aa49

Please sign in to comment.