feat: check if image exists before caching optimized version

This commit is contained in:
Cory Dransfeldt 2024-02-04 12:49:23 -08:00
parent cb6b5dbd8e
commit f0f1c0aaab
No known key found for this signature in database
9 changed files with 101 additions and 55 deletions

View file

@ -407,6 +407,33 @@ li {
width: 100%;
}
.image__placeholder {
background-color: var(--color-darkest);
justify-content: center;
width: 100%;
height: 100%;
}
.image__placeholder > svg {
stroke: var(--color-lightest) !important;
stroke-width: var(--stroke-width-bold);
height: 1.75rem;
width: 1.75rem;
}
.image__placeholder.square,
.image__placeholder.round {
aspect-ratio: 1/1;
}
.image__placeholder.round {
border-radius: var(--rounded-full);
}
.image__placeholder.vertical {
aspect-ratio: 2/3;
}
/* pages */
.page__header {
font-size: var(--font-size-2xl);

View file

@ -94,6 +94,7 @@
.webmentions .interaction .avatar__wrapper img {
width: 100%;
height: 100%;
border-radius: var(--rounded-full);
}