Diff

mod_http_muc_log/res/http_muc_log.html @ 4972:b49d72160497

mod_http_muc_log: Move OOB style from attribute to <style> in header Allows stricter restrictions, i.e. Content-Security-Policy
author Kim Alvefur <zash@zash.se>
date Wed, 06 Jul 2022 18:24:43 +0200
parent 4963:479d618c9e6d
child 4973:39211f23f9f3
line wrap: on
line diff
--- a/mod_http_muc_log/res/http_muc_log.html	Tue Jul 05 16:02:22 2022 +0200
+++ b/mod_http_muc_log/res/http_muc_log.html	Wed Jul 06 18:24:43 2022 +0200
@@ -48,6 +48,7 @@
 form{text-align:right}
 li.edited{display:none}
 li:target{outline:1px gray dotted;display:inherit}
+figure img{max-height:9em;max-width:16em}
 @media (prefers-color-scheme: dark) {
 html{color:#eee}
 body{background-color:#161616}
@@ -115,7 +116,7 @@
 <em class="verb">{item.verb?}</em>
 <q class="body">{item.edited&<del>}{item.body?}{item.edited&</del> <a href="#{item.edited}">&#9998;</a>}{item.edit& <a href="#{item.edit}">&#9999;</a>}</q>
 {item.reactions%<span class="reaction">{idx} {item}</span>}
-{item.oob.url&<figure><a rel="nofollow" href="{item.oob.url?}"><img style="max-height:9em;max-width:16em" alt="{item.oob.desc?}" src="{item.oob.url?}"/></a><figcaption>{item.oob.desc?}</figcaption></figure>}
+{item.oob.url&<figure><a rel="nofollow" href="{item.oob.url?}"><img alt="{item.oob.desc?}" src="{item.oob.url?}"/></a><figcaption>{item.oob.desc?}</figcaption></figure>}
 </li>}
 </ol>
 </main>