From d71945a11dcb59bee861bff397f8d40a4f42c795 Mon Sep 17 00:00:00 2001 From: Audrey Hamelers Date: Sat, 6 Jul 2024 00:56:44 +0200 Subject: [PATCH 1/2] fix various elements that break page width --- app/assets/stylesheets/scss/_admin-layout.scss | 1 + app/assets/stylesheets/scss/_columns.scss | 3 ++- app/assets/stylesheets/scss/_login.scss | 8 ++++++-- app/assets/stylesheets/scss/_select.scss | 4 ++++ app/views/stash_engine/shared/_change_tenant.html.erb | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/scss/_admin-layout.scss b/app/assets/stylesheets/scss/_admin-layout.scss index 13315de6df..619afc86b2 100644 --- a/app/assets/stylesheets/scss/_admin-layout.scss +++ b/app/assets/stylesheets/scss/_admin-layout.scss @@ -74,6 +74,7 @@ gap: $spacing-base/2; align-items: center; flex-wrap: wrap; + max-width: 100%; } #search-pair { diff --git a/app/assets/stylesheets/scss/_columns.scss b/app/assets/stylesheets/scss/_columns.scss index b659fa07b6..f7e56b7e5e 100644 --- a/app/assets/stylesheets/scss/_columns.scss +++ b/app/assets/stylesheets/scss/_columns.scss @@ -25,10 +25,11 @@ .c-columns__content, #page-content { padding-left: 2px; + overflow-wrap: anywhere; + @include bp(screen3) { flex: 0 1 90ch; padding-right: 5ch; - overflow: visible; } } diff --git a/app/assets/stylesheets/scss/_login.scss b/app/assets/stylesheets/scss/_login.scss index 21a3059714..dcc06a4581 100644 --- a/app/assets/stylesheets/scss/_login.scss +++ b/app/assets/stylesheets/scss/_login.scss @@ -31,22 +31,26 @@ margin-left: 0; display: flex; flex-direction: row; + flex-wrap: wrap; + justify-content: center; form { display: flex; flex-direction: row; width: 100%; + flex-wrap: wrap; & > div { display: flex; flex-direction: row; + flex-wrap: wrap; + justify-content: center; + gap: 1ch; } } .c-auto_complete { width: 20rem; - margin-right: 10px; - .c-input__text.c-ac__input_with_button, .c-ac__input-button { height: 45px; } diff --git a/app/assets/stylesheets/scss/_select.scss b/app/assets/stylesheets/scss/_select.scss index c113a40016..b4824cb4f7 100644 --- a/app/assets/stylesheets/scss/_select.scss +++ b/app/assets/stylesheets/scss/_select.scss @@ -1,5 +1,9 @@ // ##### Select Content Object ##### // +select { + max-width: 100%; +} + .o-select { margin: 0 0 20px; } diff --git a/app/views/stash_engine/shared/_change_tenant.html.erb b/app/views/stash_engine/shared/_change_tenant.html.erb index 9966b57cdc..41220b7dfc 100644 --- a/app/views/stash_engine/shared/_change_tenant.html.erb +++ b/app/views/stash_engine/shared/_change_tenant.html.erb @@ -13,7 +13,7 @@