Skip to content

chore: stop justifying the home and internships prose - #199

Merged
magnus-madsen merged 1 commit into
masterfrom
chore/drop-text-justify
Aug 8, 2026
Merged

chore: stop justifying the home and internships prose#199
magnus-madsen merged 1 commit into
masterfrom
chore/drop-text-justify

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

.text-justify is a Bootstrap 4 class the site carried forward after Bootstrap 5 dropped it. This removes the rule and its seven uses, leaving global.css at 156 lines.

Why

Every use sat inside a col-md-6, which is the worst place for justified text. The column is about 540px at desktop and 355px between the md and lg breakpoints, so each line holds few enough words that the leftover space lands in a handful of gaps instead of spreading out — and nothing set hyphens: auto to take the edge off. At narrow widths the intro rendered with word spaces roughly three times their natural size ("Flix is a principled effect-oriented" across one line), and the internships page did the same.

It was also inconsistent: two pages of ten were justified. The FAQ, principles, contribute, get-started and vscode pages under the same navbar have always been ragged-right. Now the whole site is.

One of the seven did nothing at all — the funding line ("Flix is generously funded by a range of instruments from:") fits on a single line at desktop width, and justification never applies to a paragraph's last line.

What changed

  • index.astro — the class removed from six paragraphs: the lead, Why Effects?, Why Flix?, "Moreover, Flix builds on…", "Actively Developed and Maintained", and the funding line
  • internships.astro — removed from the column <div>, which had been justifying all six paragraphs at once
  • global.css — rule and comment deleted

astro check and the build are clean, with no text-justify left in source or output. Reviewed in the browser at desktop and narrow widths before committing.

🤖 Generated with Claude Code

.text-justify was a Bootstrap 4 class the site carried forward after
Bootstrap 5 dropped it. Every one of its seven uses sat inside a
col-md-6, which is the worst place for justified text: the column is
about 540px at desktop and 355px between the md and lg breakpoints, so
each line has few enough words that the leftover space lands in a handful
of gaps rather than spreading out. Nothing set hyphens: auto to take the
edge off. At narrow widths the intro read with word spaces roughly three
times their natural size.

It was inconsistent on top of that. Two pages of ten were justified; the
FAQ, principles, contribute, get-started and vscode pages under the same
navbar were always ragged-right, and now the whole site is. One of the
seven did nothing at all -- the funding line fits on a single line at
desktop width, and justification never applies to a paragraph's last one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit 016991d into master Aug 8, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the chore/drop-text-justify branch August 8, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant