Bump every social media card template and its matching copy panel from their current pixel widths (600–760px) to 1024px — the next standard browser breakpoint above 780px — so generated social images fill more screen real estate on modern displays.
/plan-agent:planning widen-social-card-templates-to-1024px.html widen social card templates to 1024px
widen-social-card-templates-to-1024px.html
docs/plans/widen-social-card-templates-to-1024px.html
Context
All seven HTML card templates in kit/plugins/social-media-tools/templates/ use hardcoded pixel widths for the .card and .copy-panel selectors. The widths were set conservatively to fit within 768px (tablet md) viewports — the largest, diff-card.html, is 760px wide. Modern desktop browsers default to viewports of 1280px or wider, and the Playwright screenshot pipeline captures the .card element directly (not the full page), so there is no screenshot-overflow risk at larger sizes.
The standard CSS breakpoint sequence above 780px is 1024px (the Tailwind/Bootstrap lg breakpoint). Moving to 1024px gives cards ~35% more horizontal canvas without crossing into the 1280px (xl) range that would cause overflow on smaller desktop windows.
Current widths by template:
| Template | Current .card | Current .copy-panel | Target |
|---|---|---|---|
| diff-card.html | 760px | 760px | 1024px |
| snippet-card.html | 720px | 720px | 1024px |
| blog-card.html | 680px | 680px | 1024px |
| feature-card.html | 680px | 680px | 1024px |
| video-card.html | 640px | 640px | 1024px |
| quote-card.html | 600px | 600px | 1024px |
| session-card.html | min(720px,100%) | min(720px,100%) | min(1024px,100%) |
Steps
diff-card.html — change both width: 760px occurrences to width: 1024px
Verify
grep -n "width: " kit/plugins/social-media-tools/templates/diff-card.html and confirm both .card and .copy-panel show width: 1024px. No 760px should remain.snippet-card.html — change both width: 720px occurrences to width: 1024px
Verify
grep -n "width: 720\|width: 1024" kit/plugins/social-media-tools/templates/snippet-card.html — must show two 1024px hits, zero 720px hits for the card/panel selectors (the max-width: 260px language-badge line is unaffected).blog-card.html — change both width: 680px occurrences to width: 1024px
Verify
grep -n "width: " kit/plugins/social-media-tools/templates/blog-card.html — confirm two 1024px lines, no 680px lines.feature-card.html — change both width: 680px occurrences to width: 1024px
Verify
grep -n "width: " kit/plugins/social-media-tools/templates/feature-card.html — confirm two 1024px lines, no 680px lines.video-card.html — change both width: 640px occurrences to width: 1024px
Verify
grep -n "width: " kit/plugins/social-media-tools/templates/video-card.html — confirm two 1024px lines, no 640px lines for the card/panel selectors.quote-card.html — change both width: 600px occurrences to width: 1024px (card and copy-panel; leave the decorative width: 40px quote-mark element untouched)
Verify
grep -n "width:" kit/plugins/social-media-tools/templates/quote-card.html — confirm two 1024px lines for .card and .copy-panel, and that width: 40px on the quote-mark element is unchanged.session-card.html — change both width: min(720px, 100%) occurrences to width: min(1024px, 100%) (preserve the min() wrapper)
min() pattern so it can flex below 1024px on narrow viewports; preserving that wrapper maintains its fluid behaviour while raising the cap.Verify
grep -n "min(" kit/plugins/social-media-tools/templates/session-card.html — confirm two hits with min(1024px, 100%) and no 720px remaining in that pattern.Acceptance Criteria
Verification
Run the following grep across all templates and confirm zero old-width values remain on card/panel selectors:
grep -rn "width: 600\|width: 640\|width: 680\|width: 720\|width: 760\|min(720" \ kit/plugins/social-media-tools/templates/
Expected output: no matches (the command returns empty). Then open any one template in a browser at 1024px viewport width — the card and copy panel should each measure exactly 1024px with no horizontal scrollbar on the page body.
Optionally trigger a /social-media-tools:share-code run and confirm the Playwright screenshot captures a 1024px-wide card.