From 5c4fcc7fd41ca03c7920cdf458e9edfb7257a4c3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 2 Oct 2026 15:36:45 +0200 Subject: [PATCH] Thing deck: the measured masthead clearance includes the header's top margin offsetHeight leaves out the 2.4rem/1.3rem margin above the masthead, so on a phone the hero's eyebrow started 20px inside the header box. The stage now pads its top by the masthead's full footprint above the stage. Co-Authored-By: Claude Opus 5.5 --- site/quartz/static/thing/deck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/quartz/static/thing/deck.js b/site/quartz/static/thing/deck.js index 486c6f0..be4a5a3 100644 --- a/site/quartz/static/thing/deck.js +++ b/site/quartz/static/thing/deck.js @@ -141,7 +141,7 @@ $('.tps').textContent=tps.toLocaleString(); } var hdr=document.querySelector('.page-header'); - function sizeHead(){if(hdr)root.style.setProperty('--masthead-h',hdr.offsetHeight+'px');} + function sizeHead(){if(hdr)root.style.setProperty('--masthead-h',hdr.offsetHeight+parseFloat(getComputedStyle(hdr).marginTop)+'px');} function req(){if(!ticking){ticking=true;requestAnimationFrame(frame);}} window.addEventListener('scroll',req,{passive:true}); window.addEventListener('resize',function(){sizeHead();sizeCanvas();sizeBurst();req();});