Fix optional firm branding in shared navigation layout

This commit is contained in:
A R R R Associates
2026-07-10 11:52:42 +05:30
parent 0e00141ded
commit 80ec33a380
2 changed files with 17 additions and 15 deletions
@@ -3,8 +3,8 @@
<div class="rounded-2xl border border-slate-200 bg-white/95 shadow-soft">
<div class="flex items-center gap-3 px-3 py-2.5 sm:px-4">
<a href="/workspaces" class="flex min-w-0 items-center gap-3 rounded-xl px-1 py-1 transition hover:bg-slate-50 lg:min-w-[220px]">
{% if firm_branding.logo_url %}
<img src="{{ firm_branding.logo_url }}" alt="{{ current_firm_name }} logo" class="h-10 w-10 shrink-0 rounded-xl border border-slate-100 bg-white object-contain p-1 shadow-sm" />
{% if current_firm_logo_url|default("", true) %}
<img src="{{ current_firm_logo_url }}" alt="{{ current_firm_name }} logo" class="h-10 w-10 shrink-0 rounded-xl border border-slate-100 bg-white object-contain p-1 shadow-sm" />
{% else %}
<div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-brand-600 text-sm font-bold text-white shadow-sm">{{ (current_firm_name[:2] if current_firm_name else 'AF')|upper }}</div>
{% endif %}