feat(ui): polish env editor, error buttons, and modal layout

This commit is contained in:
Andras Bacsai
2026-09-08 11:49:02 +02:00
parent abc701ac65
commit 4a3dc11958
28 changed files with 256 additions and 103 deletions
+14 -2
View File
@@ -1,7 +1,19 @@
<?php
test('app layouts always reserve space for the vertical scrollbar', function (string $layout) {
test('app layouts let the root element own vertical scrolling', function (string $layout) {
$contents = file_get_contents(dirname(__DIR__, 2).'/'.$layout);
expect($contents)->toMatch('/<body(?:\s+[^>]*)?class="[^"]*overflow-y-scroll[^"]*"[^>]*>/');
expect($contents)->not->toMatch('/<body(?:\s+[^>]*)?class="[^"]*overflow-y-scroll[^"]*"[^>]*>/');
})->with(['resources/views/layouts/base.blade.php']);
test('scroll locking is left to Alpine scrollbar compensation', function () {
$styles = file_get_contents(dirname(__DIR__, 2).'/resources/css/app.css');
expect($styles)->not->toMatch('/html\s*\{[^}]*scrollbar-gutter:\s*stable;/s');
});
test('desktop navbar uses the document width', function () {
$layout = file_get_contents(dirname(__DIR__, 2).'/resources/views/layouts/app.blade.php');
expect($layout)->not->toMatch('/class="[^"]*hidden lg:flex fixed top-0 inset-x-0[^"]*w-screen[^"]*"/');
});