perf(seo): add image dimensions and aspect-ratio handling

This commit is contained in:
Rico
2026-01-07 20:06:17 +01:00
parent cf08d2b3bb
commit e4d3a32558
4 changed files with 20 additions and 3 deletions

View File

@@ -129,3 +129,16 @@ ins.adsbygoogle[data-ad-status="unfilled"] {
overflow-y: auto;
overflow-x: auto;
}
.prose img {
height: auto;
max-width: 100%;
}
.prose img:not([width]):not([height]) {
aspect-ratio: attr(width) / attr(height);
}
.prose img[width][height] {
aspect-ratio: attr(width) / attr(height);
}