Root cause: featured_pour's empty-media placeholder used an external <use> SVG (svg class=h-24 w-24 + use href=/icons/lucide.svg#coffee) sized ONLY by Tailwind utilities. The host Tailwind JIT does not reliably emit utility classes used solely in a theme block template, so h-24/w-24 could be dropped from the generated stylesheet; the SVG (no viewBox, no intrinsic size) then ballooned to fill its aspect-square parent (~350-500px cup silhouettes over the hero/blog cards). Fix pins width/height geometry attributes on every <use> icon SVG so size is CSS-independent and deterministic. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
1.4 KiB
Plaintext
15 lines
1.4 KiB
Plaintext
<section data-block="coffee:featured_pour" class="py-12 md:py-16 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
<div class="coffee-card coffee-torn-bottom coffee-pour-grid relative mx-auto max-w-4xl p-6">
|
|
<span class="coffee-hand absolute -top-4 left-6 inline-flex rotate-[-3deg] items-center gap-1 rounded-full bg-accent px-4 py-1 text-lg text-accent-foreground shadow-sm">{{ label|default:"Featured pour" }}</span>
|
|
<div class="aspect-square overflow-hidden rounded-sm bg-secondary">
|
|
{% if image %}{% img image alt=name|default:"Featured pour" class="h-full w-full object-cover" %}{% else %}<div class="flex h-full w-full items-center justify-center bg-secondary text-primary/20"><svg width="96" height="96" class="h-24 w-24" aria-hidden="true"><use href="/icons/lucide.svg#coffee"></use></svg></div>{% endif %}
|
|
</div>
|
|
<div class="flex flex-col gap-3">
|
|
{% if origin %}<p class="coffee-hand text-xl text-accent">{{ origin }}</p>{% endif %}
|
|
{% if name %}<h3 class="coffee-display text-3xl text-primary"><span class="coffee-doodle-underline">{{ name }}</span></h3>{% else %}<h3 class="coffee-display text-3xl italic text-muted-foreground">Featured pour</h3>{% endif %}
|
|
{% if tasting %}<div class="coffee-body max-w-none text-foreground [&_strong]:text-primary">{{ tasting|safe }}</div>{% endif %}
|
|
{% if price %}<div class="coffee-price mt-1 text-2xl">{{ currency|default:"$" }}{{ price }}</div>{% endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|