Show only Ladill app names in the mobile header.
Deploy Ladill Servers / deploy (push) Successful in 1m10s

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:12 +00:00
co-authored by Cursor
parent ee5be04d11
commit ca9bc885db
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,
];
}