From f8ab082614afe2dea11fe2158c269f52114e8a46 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Thu, 19 Nov 2026 18:54:41 +0100 Subject: [PATCH] fix title length --- src/styles/text.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/styles/text.css b/src/styles/text.css index 54fb2e6..ea2eb26 100644 --- a/src/styles/text.css +++ b/src/styles/text.css @@ -71,7 +71,12 @@ pre { display: flex; white-space: pre; line-height: 0.8; - font-size: min(2.1vw, 1rem); + /* the longest ascii line of the site is 77 chars (the fr "développement" + title) ; at 0.6em per char, 77 * 0.6 * 1.9vw = 87.8vw, which fits in the + 100vw - 20px left by the two 10px gaps of the section grid. + 2.1vw gave 97vw and overflowed on small screens. the 1rem cap keeps + desktop unchanged */ + font-size: min(1.9vw, 1rem); } .pre_small { font-size: min(1.5vw, 0.7rem);