mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 00:16:42 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
1 parent
0b843bb07c
commit
8ae56587d5
497 files changed
+44045
-22630
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Settings / resource side navs must stay pinned while the main form column scrolls.
|
||||
*/
|
||||
it('pins application-settings-navigation with sticky CSS that survives body overflow-x', function () {
|
||||
$appCss = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($appCss)
|
||||
->toContain('overflow-x-clip')
|
||||
->not->toContain('scrollbar overflow-x-hidden;')
|
||||
->toContain('.application-settings-navigation')
|
||||
->toContain('position: sticky')
|
||||
->toContain('top: 6.5rem')
|
||||
->toContain('max-height: calc(100dvh - 7.25rem)')
|
||||
->toContain('overflow-y: auto');
|
||||
});
|
||||
|
||||
it('marks shared settings sidebars sticky at the xl breakpoint', function () {
|
||||
$paths = [
|
||||
resource_path('views/livewire/project/application/configuration.blade.php'),
|
||||
resource_path('views/livewire/project/database/configuration.blade.php'),
|
||||
resource_path('views/livewire/project/service/configuration.blade.php'),
|
||||
resource_path('views/components/settings/sidebar.blade.php'),
|
||||
resource_path('views/components/server/sidebar.blade.php'),
|
||||
resource_path('views/components/service-database/sidebar.blade.php'),
|
||||
];
|
||||
|
||||
foreach ($paths as $path) {
|
||||
expect(file_get_contents($path))
|
||||
->toContain('application-settings-navigation')
|
||||
->toContain('xl:sticky')
|
||||
->toContain('xl:top-26')
|
||||
->toContain('xl:self-start');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user