Fix thread post spacing: add reply padding and increase margins
All checks were successful
CI / test (pull_request) Successful in 1m5s
CI / test (push) Successful in 52s

Replies had no left padding from the border (padding-left:0) and too-tight
vertical spacing (margin:4px). Bump to padding-left:12px and margin:8px.

Closes #2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit was merged in pull request #4.
This commit is contained in:
2026-04-05 09:57:25 -03:00
parent bf72b74a01
commit 13f7f12499

View File

@@ -241,7 +241,7 @@ final class BlueskyThreadsExtension extends Minz_Extension {
$repliesHtml .= $this->renderThread($reply, false, $rootAuthorDid);
}
if ($repliesHtml !== '') {
$html .= '<div class="bsky-replies" style="border-left:2px solid #e1e8ed;margin-left:24px;padding-left:0;">';
$html .= '<div class="bsky-replies" style="border-left:2px solid #e1e8ed;margin-left:24px;padding-left:12px;">';
$html .= $repliesHtml;
$html .= '</div>';
}
@@ -263,7 +263,7 @@ final class BlueskyThreadsExtension extends Minz_Extension {
$embedHtml = $embed !== null ? $this->renderEmbed($embed) : '';
$rootStyle = 'border:1px solid #cfd9de;border-radius:12px;padding:12px 16px;margin-bottom:12px;';
$replyStyle = 'padding:10px 12px;margin:4px 0;';
$replyStyle = 'padding:10px 12px;margin:8px 0;';
$style = $isRoot ? $rootStyle : $replyStyle;
return <<<HTML