Tweak dialog styles a bit

This commit is contained in:
2022-08-28 19:07:14 -07:00
parent 3858441c89
commit 5869d99db1
2 changed files with 15 additions and 8 deletions

View File

@@ -1,4 +1,10 @@
<span class="message side-{{ .Get 0 }}">
<span class="message-sender">{{ partial "icon.html" "user" }}</span>
<span>{{ .Inner }}</span>
<span class="message-sender">
{{ if (eq (.Get 1) "reader") }}
{{ partial "icon.html" "moon" }}
{{ else }}
{{ partial "icon.html" "sun" }}
{{ end }}
</span>
<span class="message-text">{{ .Inner }}</span>
</span>