diff options
| author | eltrac <hi@eltr.ac> | 2026-03-24 08:56:43 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-24 08:56:43 +0800 |
| commit | 2ef70f87a4f288be987db086ac0bff4c9d132435 (patch) | |
| tree | 8a2ce4d292aefc1ac687fc4979d2e1e6cd20b9bf | |
| parent | 768a8f71ef053ca00ba1a934f9bad01060408298 (diff) | |
feat: make long webmention replies scrollable
| -rw-r--r-- | layouts/_partials/posts/webmention-replies.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_partials/posts/webmention-replies.html b/layouts/_partials/posts/webmention-replies.html index 42f24579..d5384f11 100644 --- a/layouts/_partials/posts/webmention-replies.html +++ b/layouts/_partials/posts/webmention-replies.html @@ -34,11 +34,13 @@ </div> </header> - <div class="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="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> |
