UI: add a little circle and background around the active user's reaccs
This commit is contained in:
parent
97888e2b23
commit
5b8d110474
@ -1429,13 +1429,24 @@ main {
|
||||
}
|
||||
.dm-message__reactions {
|
||||
display: flex;
|
||||
padding: 0 4em;
|
||||
font-size: 1.1em;
|
||||
padding: 0 3.5em;
|
||||
cursor: default;
|
||||
|
||||
.our-message & {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
}
|
||||
.dm-message__reacc {
|
||||
padding: 0.1em 0.2em;
|
||||
|
||||
&.dm-message__reacc--ours {
|
||||
border-radius: 50%;
|
||||
text-shadow: 0 0 3px black;
|
||||
outline: 1px solid var(--color-twitter-blue);
|
||||
background-color: var(--color-twitter-blue-extra-light);
|
||||
}
|
||||
}
|
||||
|
||||
&.our-message {
|
||||
align-items: flex-end;
|
||||
|
@ -92,7 +92,10 @@
|
||||
<div class="dm-message__reactions">
|
||||
{{range .Reactions}}
|
||||
{{$sender := (user .SenderID)}}
|
||||
<span title="{{$sender.DisplayName}} (@{{$sender.Handle}})">{{.Emoji}}</span>
|
||||
<span
|
||||
class="dm-message__reacc {{if (eq $sender.ID (active_user).ID)}} dm-message__reacc--ours{{end}}"
|
||||
title="{{$sender.DisplayName}} (@{{$sender.Handle}})"
|
||||
>{{.Emoji}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="sent-at">
|
||||
|
Loading…
x
Reference in New Issue
Block a user