mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
feat(ui): add configurable page widths and searchable controls
Add full-width and centered layout preferences across the app shell and workspaces. Replace page-size selects with dropdowns and add searchable breadcrumb switching.
This commit is contained in:
1 parent
b3b4d8a5f1
commit
5b517f21be
75 files changed
+263
-148
No files matched your search
@@ -65,3 +65,17 @@ it('changes appearance from a submenu instead of navigating to a separate page',
|
||||
->toContain('hover:bg-neutral-200 hover:text-neutral-950')
|
||||
->not->toContain("route('profile.appearance')");
|
||||
});
|
||||
|
||||
it('offers page width controls inside the appearance menu', function () {
|
||||
$menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));
|
||||
|
||||
expect($menu)
|
||||
->toContain("pageWidth: localStorage.getItem('pageWidth') || 'full'")
|
||||
->toContain("['value' => 'full', 'label' => 'Full width']")
|
||||
->toContain("['value' => 'centered', 'label' => 'Centered']")
|
||||
->toContain("@click=\"setWidth('{{ \$option['value'] }}')\"")
|
||||
->toContain('Full width')
|
||||
->toContain('Centered')
|
||||
->toContain("localStorage.setItem('pageWidth', width)")
|
||||
->toContain("new CustomEvent('page-width-changed', { detail: width })");
|
||||
});
|
||||
Reference in new issue
Block a user