From 90a8b27b8ca37f623d1fb54e92754e13e8305507 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Wed, 15 Apr 2026 14:41:27 -0400 Subject: [PATCH] fix(contributors): use table layout for HTML format to prevent vertical stacking GitHub's Markdown renderer now injects display:block on img elements with explicit width/height attributes (via js-gh-image-fallback), causing each contributor avatar to render on its own line. Wrapping each contributor in a table cell forces horizontal layout regardless of the injected style. --- .github/workflows/contributors.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index ad31371..f4d43ce 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -74,8 +74,8 @@ jobs: url=$(echo "$user_info" | jq -r '.html_url') if [[ "$OUTPUT_FORMAT" == "html" ]]; then - # HTML format with enforced size - contributor_output="$contributor_output\"$login\" " + # HTML format with enforced size (table cells prevent GitHub's display:block from stacking images) + contributor_output="$contributor_output\"$login\"" else # Markdown format (default) contributor_output="$contributor_output[![$login](${avatar}&s=64)]($url) " @@ -83,9 +83,15 @@ jobs: done # Build the contributors section - contrib_section=" - $contributor_output - " + if [[ "$OUTPUT_FORMAT" == "html" ]]; then + contrib_section=" +$contributor_output
+" + else + contrib_section=" +$contributor_output +" + fi # Update README between the markers awk -v contrib="$contrib_section" '