minor cleanup and fixes

This commit is contained in:
lilydjwg 2021-10-04 20:40:21 +08:00
parent e1f15e46b0
commit 79ac1e1c69

View File

@ -46,15 +46,13 @@
</script> </script>
<div> <div class="message">
<div class="message">
<img src="{getContext('LUOXU_URL')}/avatar/{msg.from_id}.jpg" height="64" width="64" alt="{msg.from_name} 的头像"/> <img src="{getContext('LUOXU_URL')}/avatar/{msg.from_id}.jpg" height="64" width="64" alt="{msg.from_name} 的头像"/>
<div> <div>
<div class="name">{msg.from_name}</div> <div class="name">{msg.from_name || ' '}</div>
<div class="body"><pre>{msg.text}</pre></div> <pre>{msg.text}</pre>
<div class="time"><a href="tg://resolve?domain={group}&post={msg.id}"><time datetime={iso_date} title={title}>{relative_dt}</time></a></div> <div class="time"><a href="tg://resolve?domain={group}&post={msg.id}"><time datetime={iso_date} title={title}>{relative_dt}</time></a></div>
</div> </div>
</div>
</div> </div>
<style> <style>
@ -67,11 +65,6 @@
border-radius: 5px; border-radius: 5px;
display: flex; display: flex;
} }
.message::after {
content: '';
display: block;
clear: both;
}
img { img {
padding-right: 0.5em; padding-right: 0.5em;
} }
@ -80,7 +73,7 @@
color: #1e90ff; color: #1e90ff;
} }
pre { pre {
white-space: break-spaces; white-space: pre-wrap;
margin: 0.2em 0; margin: 0.2em 0;
} }
.time { .time {