dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 1823890108d70bc8711b157e44652440425e4e58
parent d3b8bc9176c866357f159a290c63c8728450171b
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 19 Mar 2023 05:08:12 -0700

cleanup css

Diffstat:
Mpkg/web/public/views/pages/chat-archive.gohtml | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pkg/web/public/views/pages/chat-archive.gohtml b/pkg/web/public/views/pages/chat-archive.gohtml @@ -56,6 +56,7 @@ ul { list-style-type: disc; margin: 0 0 0 15px; padding: 0; margin-bottom: 0 !important; } pre { border: 1px solid #2b442b; padding: 2px; margin: 2px 0; max-height: 300px; overflow: auto; background-color: rgba(39,40,34,0.6) !important; } code { border: 1px solid #2b442b; color: #f92672; padding: 0 2px; margin: 0px 0; background-color: rgba(39,40,34,0.6) !important; } + .o-wrap { overflow-wrap: break-word; } </style> {{ end }} @@ -139,13 +140,13 @@ <span {{ .User.GenerateChatStyle | attr }}>{{ .User.Username }}</span> -&nbsp; {{- end -}} {{- if .System -}} - <span style="color: #fff; font-family: 'Courier New', Courier, monospace; font-size: 14px;">{{ .Message | safe }}</span> + <span class="sysmsg">{{ .Message | safe }}</span> {{- else -}} {{- if .IsMe -}} {{- if .Moderators -}}<span class="sysmsg">[M]</span>&nbsp;{{- end -}} - <span style="overflow-wrap: break-word;"><span {{ .User.GenerateChatStyle | attr }}>{{ .User.Username }} {{ .TrimMe | safe }}</span></span> + <span {{ .User.GenerateChatStyle | attr }}><span class="o-wrap">{{ .User.Username }} {{ .TrimMe | safe }}</span></span> {{- else -}} - <span {{ .User.GenerateChatStyle | attr }}><span style="overflow-wrap: break-word;">{{ .Message | safe }}</span></span> + <span {{ .User.GenerateChatStyle | attr }}><span class="o-wrap">{{ .Message | safe }}</span></span> {{- end -}} {{- end -}} </div>