Show only Ladill app names in the mobile header.
Deploy Ladill Events / deploy (push) Successful in 30s

Remove route-based page titles and the uppercase subtitle line so mobile
headers display a single title like Ladill Bird.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 16:44:11 +00:00
co-authored by Cursor
parent 99dbff200c
commit 3c995d70f8
3 changed files with 5 additions and 35 deletions
+4 -10
View File
@@ -6,19 +6,13 @@ class MobileTopbar
{ {
public static function resolve(): array public static function resolve(): array
{ {
$config = config('mobile-topbar', []); $appName = config('mobile-topbar.app_name', 'Ladill');
$subtitle = $config['app_name'] ?? 'Ladill';
$title = $config['default_title'] ?? 'Overview';
foreach ($config['patterns'] ?? [] as $pattern => $patternTitle) { $title = $appName === 'Ladill'
if (request()->routeIs($pattern)) { ? 'Ladill'
$title = is_callable($patternTitle) ? $patternTitle() : $patternTitle; : "Ladill {$appName}";
break;
}
}
return [ return [
'mobileTopbarSubtitle' => $subtitle,
'mobileTopbarTitle' => $title, 'mobileTopbarTitle' => $title,
]; ];
} }
-20
View File
@@ -2,24 +2,4 @@
return [ return [
'app_name' => 'Events', 'app_name' => 'Events',
'default_title' => 'Overview',
'patterns' => [
'events.dashboard' => 'Overview',
'events.search' => 'Search',
'events.index' => 'Events',
'events.create' => 'Create event',
'events.show' => 'Event',
'attendees.*' => 'Attendees',
'events.attendees*' => 'Attendees',
'badges.*' => 'Badge printing',
'events.badge*' => 'Badge printing',
'programmes.*' => 'Programmes',
'events.payouts' => 'Payments & Payouts',
'account.wallet' => 'Wallet',
'account.billing' => 'Billing',
'account.team*' => 'Team',
'account.settings' => 'Settings',
'account.developers*' => 'Developers',
'notifications.*' => 'Notifications',
],
]; ];
@@ -1,10 +1,6 @@
@php @php
$subtitle = $mobileTopbarSubtitle ?? null; $title = $mobileTopbarTitle ?? 'Ladill';
$title = $mobileTopbarTitle ?? 'Overview';
@endphp @endphp
<div class="min-w-0 flex-1 lg:hidden"> <div class="min-w-0 flex-1 lg:hidden">
@if ($subtitle)
<p class="text-xs font-semibold uppercase tracking-[0.18em] text-slate-400">{{ $subtitle }}</p>
@endif
<h1 class="truncate text-base font-semibold text-slate-900">{{ $title }}</h1> <h1 class="truncate text-base font-semibold text-slate-900">{{ $title }}</h1>
</div> </div>