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>
11 lines
1.5 KiB
Plaintext
11 lines
1.5 KiB
Plaintext
{# coffee utility-bar — thin contact strip; left/right item lists {icon,label,link}. #}
|
|
{% set ubcls = "bg-muted text-muted-foreground border-b border-dashed border-border" %}
|
|
{% if variant == "primary" %}{% set ubcls = "bg-primary text-primary-foreground" %}{% elif variant == "dark" %}{% set ubcls = "bg-foreground text-background" %}{% endif %}
|
|
{% macro ubitem(it) %}{% if it.link %}<a href="{{ it.link }}" class="inline-flex items-center gap-1.5 transition-opacity hover:opacity-80">{% if it.icon %}<svg width="12" height="12" class="h-3.5 w-3.5" aria-hidden="true"><use href="/icons/{{ it.icon|split:":"|first }}.svg#{{ it.icon|split:":"|last }}"></use></svg>{% endif %}{% if it.label %}<span>{{ it.label }}</span>{% endif %}</a>{% else %}<span class="inline-flex items-center gap-1.5">{% if it.icon %}<svg width="12" height="12" class="h-3.5 w-3.5" aria-hidden="true"><use href="/icons/{{ it.icon|split:":"|first }}.svg#{{ it.icon|split:":"|last }}"></use></svg>{% endif %}{% if it.label %}<span>{{ it.label }}</span>{% endif %}</span>{% endif %}{% endmacro %}
|
|
<div class="coffee-body w-full text-xs {% if not showOnMobile %}hidden sm:block{% endif %} {{ ubcls }} {{ class }}">
|
|
<div class="mx-auto flex h-9 max-w-7xl items-center justify-between gap-4 px-4 sm:px-6 lg:px-8">
|
|
<div class="flex flex-wrap items-center gap-4">{% for it in leftItems %}{{ ubitem(it) }}{% endfor %}</div>
|
|
<div class="flex flex-wrap items-center justify-end gap-4">{% for it in rightItems %}{{ ubitem(it) }}{% endfor %}</div>
|
|
</div>
|
|
</div>
|