mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 08:25:45 +00:00
feat(ui): show Coolify version in mobile sidebar
This commit is contained in:
@@ -84,6 +84,14 @@
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div data-mobile-sidebar-brand
|
||||
class="flex h-12 shrink-0 items-center gap-1.5 border-b border-neutral-200 px-4 dark:border-white/[0.06]">
|
||||
<a href="/" {{ wireNavigate() }} title="Coolify"
|
||||
class="text-[15px] font-semibold tracking-tight text-black transition-opacity hover:opacity-80 dark:text-white">
|
||||
Coolify
|
||||
</a>
|
||||
<x-version class="!text-[10.5px] font-medium text-neutral-400 dark:text-fg-faint !opacity-100 hover:!opacity-100 hover:text-black dark:hover:text-fg" />
|
||||
</div>
|
||||
<div class="flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto pb-2 scrollbar">
|
||||
<x-navbar />
|
||||
</div>
|
||||
|
||||
@@ -28,3 +28,11 @@ test('development versions are not linked to nonexistent github releases', funct
|
||||
->not->toContain('href=')
|
||||
->not->toContain('target="_blank"');
|
||||
});
|
||||
|
||||
test('mobile sidebar shows the installed coolify version when opened', function () {
|
||||
$layout = file_get_contents(resource_path('views/layouts/app.blade.php'));
|
||||
|
||||
expect($layout)
|
||||
->toContain('data-mobile-sidebar-brand')
|
||||
->toContain('<x-version class="!text-[10.5px]');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user