Social cards: keep the title readable in a centre square crop

Open
#2,191 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
html, python

Research direction

Start by running scripts/build-general-og.py and scripts/build-event-og.py to regenerate a sample card, then crop the 630×630 centre and a 160 px centre square to see the failure on the Policy Workshop 2026 card. Read where each script places the title, date and lockup, and find the directory card builder alongside them. Pick one of the two options in the issue first, since moving text inward and adding a square og:image variant are different changes. Done means every card's event name and date are legible in the centre crop as well as at full width.

Written by the indexing model from the issue text.

Description

a11y enhancement

What's happening

iMessage, WhatsApp and some Slack layouts show a link preview as a small square cropped from the centre of the 1200×630 card. The general card (scripts/build-general-og.py), the directory card and the event cards (scripts/build-event-og.py) all set their text on the left, so the centre square shows the middle of the title and cuts the start of each line. On the Policy Workshop 2026 card the square reads "Power Politics and t" over "of Alliances".

Why it matters

Messaging apps are where members forward links to colleagues. A cropped title makes the preview hard to identify.

Fix options

  • Keep the 1200×630 layout and move the essential text (event name, date) into the central 630×630 area, with the lockup and footer in the side margins.
  • Or add an og:image square variant (some platforms pick the first image that fits their slot), at the cost of a second render per card.

Either way, check the result in a 160 px centre crop as well as at full width. The general and directory cards are hand-run builders, and the event cards render at deploy.

Target

Backlog — Under watch (design pass, no fixed release).

Dominant language
HTML
Stars
1
Forks
1
Avg merge
1h 19m
Merged PRs (30d)
163

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EISSeuropa/netsec.github.io

All issues in EISSeuropa/netsec.github.io

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.