Fix sizing and header alignment
Some checks failed
Check & deploy / validate (push) Failing after 7m47s
Check & deploy / deploy (push) Has been skipped

This commit is contained in:
Andras Schmelczer 2026-06-09 21:57:43 +01:00
commit f1add7a639

View file

@ -71,13 +71,6 @@ const createFrameFigure = (thumbnail: HTMLAnchorElement): HTMLElement => {
image.removeAttribute('loading');
image.decoding = 'async';
// Reserve the photo's final size before it loads (see --frame-ratio in CSS).
const ratio =
Number(image.getAttribute('width')) / Number(image.getAttribute('height'));
if (Number.isFinite(ratio) && ratio > 0) {
figure.style.setProperty('--frame-ratio', String(ratio));
}
figure.append(picture);
return figure;