diff options
| author | eltrac <hi@eltr.ac> | 2026-03-24 08:56:43 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-24 10:06:52 +0800 |
| commit | fa88079d43d8801f728cd7b604fd19ad138a90f3 (patch) | |
| tree | a9f2ad96bc4ed493a2d3a4e6acc36f360e72dc86 /layouts/_partials/posts | |
| parent | d4c79dd611305ebd683926fc98b22080d3c49505 (diff) | |
feat: make long webmention replies scrollable
Diffstat (limited to 'layouts/_partials/posts')
| -rw-r--r-- | layouts/_partials/posts/webmention-replies.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_partials/posts/webmention-replies.html b/layouts/_partials/posts/webmention-replies.html index c59fa2f2..e3f9658e 100644 --- a/layouts/_partials/posts/webmention-replies.html +++ b/layouts/_partials/posts/webmention-replies.html @@ -34,14 +34,14 @@ </div> </header> - <div class="webmention-body markdown-body leading-relaxed ml-3 pl-4 pr-2 b-l-4 b-l-solid b-neutral-200/50 dark:b-neutral-700/50"> - {{ index (index $reply.content 0) "html" | safeHTML }} - {{ if strings.Contains .webmention.source "https://brid.gy" }} - <p class="text-xs text-right text-secondary">通过 <a href="https://brid.gy/" target="_blank">Bridgy</a> 发送自联邦宇宙</p> - {{ end }} + <div class="max-h-[500px] overflow-y-auto overflow-x-hidden"> + <div class="webmention-body markdown-body leading-relaxed ml-3 pl-4 pr-2 b-l-4 b-l-solid b-neutral-200/50 dark:b-neutral-700/50"> + {{ index (index $reply.content 0) "html" | safeHTML }} + {{ if strings.Contains .webmention.source "https://brid.gy" }} + <p class="text-xs text-right text-secondary">通过 <a href="https://brid.gy/" target="_blank">Bridgy</a> 发送自联邦宇宙</p> + {{ end }} + </div> </div> - - </div> {{ end }} </section> |
