Hide header avatar on mobile and sync shared mobile nav partials.
Deploy Ladill Link / deploy (push) Successful in 1m7s
Deploy Ladill Link / deploy (push) Successful in 1m7s
Profile moves to the bottom nav sheet on small screens; optional search tab support is synced from the Ladill platform template. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{{--
|
||||
Standard desktop top-right widgets (CRM / Invoice layout):
|
||||
Afia → notifications → launcher → divider → avatar dropdown.
|
||||
Top-right header widgets:
|
||||
Mobile — Afia + launcher only (profile/notifications live in bottom nav).
|
||||
Desktop — Afia → notifications → launcher → divider → avatar dropdown.
|
||||
--}}
|
||||
@php
|
||||
$topbarUser = $user ?? auth()->user();
|
||||
@@ -22,7 +23,7 @@
|
||||
|
||||
<div class="hidden h-8 w-px bg-slate-200 lg:block"></div>
|
||||
|
||||
<div class="relative" x-data="{ profileOpen: false }" @click.outside="profileOpen = false" @keydown.escape.window="profileOpen = false">
|
||||
<div class="relative hidden lg:block" x-data="{ profileOpen: false }" @click.outside="profileOpen = false" @keydown.escape.window="profileOpen = false">
|
||||
<button type="button" @click="profileOpen = !profileOpen"
|
||||
class="inline-flex items-center gap-2 rounded-full border border-slate-200 px-2 py-1.5 text-slate-700 transition hover:bg-slate-50">
|
||||
@if ($avatarUrl)
|
||||
|
||||
Reference in New Issue
Block a user