Show only Ladill app names in the mobile header.
Deploy Ladill QR Plus / deploy (push) Successful in 43s

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 40981be252
commit 3f9b84af67
3 changed files with 5 additions and 29 deletions
+4 -10
View File
@@ -6,19 +6,13 @@ class MobileTopbar
{
public static function resolve(): array
{
$config = config('mobile-topbar', []);
$subtitle = $config['app_name'] ?? 'Ladill';
$title = $config['default_title'] ?? 'Overview';
$appName = config('mobile-topbar.app_name', 'Ladill');
foreach ($config['patterns'] ?? [] as $pattern => $patternTitle) {
if (request()->routeIs($pattern)) {
$title = is_callable($patternTitle) ? $patternTitle() : $patternTitle;
break;
}
}
$title = $appName === 'Ladill'
? 'Ladill'
: "Ladill {$appName}";
return [
'mobileTopbarSubtitle' => $subtitle,
'mobileTopbarTitle' => $title,
];
}
-14
View File
@@ -2,18 +2,4 @@
return [
'app_name' => 'QR Plus',
'default_title' => 'Overview',
'patterns' => [
'qr.dashboard' => 'Overview',
'qr.search' => 'Search',
'user.qr-codes.index' => 'QR codes',
'user.qr-codes.create' => 'Create QR code',
'user.qr-codes.show' => 'QR code',
'account.wallet' => 'Wallet',
'account.billing' => 'Billing',
'account.team*' => 'Team',
'account.settings' => 'Settings',
'account.developers*' => 'Developers',
'notifications.*' => 'Notifications',
],
];
@@ -1,10 +1,6 @@
@php
$subtitle = $mobileTopbarSubtitle ?? null;
$title = $mobileTopbarTitle ?? 'Overview';
$title = $mobileTopbarTitle ?? 'Ladill';
@endphp
<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>
</div>