From b7a20d9d41ea8bcefdd553b87641f3c22b4cde97 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Mon, 1 Apr 2024 20:39:54 +0200 Subject: [PATCH] Fix top script menu overflow on small screens On very small screens (that can be tested with iPhone SE size), the `All` button overflows. This makes E2E tests fail with width like `320px`. This commit fixes the issue by removing `whitespace: no-break` but employing simpler and self-documenting layout. Key changes: - Simplify scripts menu layout instead of relying on `white-space: nowrap`. - Increase gap when script menu items starts wrapping to avoid "squeezed" look. Other supporting changes: - Simplify gaps by using `column-gap` and `row-gap` properties rather than calculating margins. - Use class-based styling instead of using `id`. - Use more clear, consistent CSS class naming with prefixes in `TheScriptsMenu` to improve maintainability. - Introduce `center-middle-flex-item` mixin for better documenting the code. --- .../Scripts/Menu/TheScriptsMenu.vue | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/src/presentation/components/Scripts/Menu/TheScriptsMenu.vue b/src/presentation/components/Scripts/Menu/TheScriptsMenu.vue index 10911311..e2d80bcf 100644 --- a/src/presentation/components/Scripts/Menu/TheScriptsMenu.vue +++ b/src/presentation/components/Scripts/Menu/TheScriptsMenu.vue @@ -1,13 +1,13 @@