From 6e30379004e2fbfe809f59ec1ec10ed5b6e42338 Mon Sep 17 00:00:00 2001 From: Henriette Darge Date: Mon, 11 Mar 2024 13:28:02 +0100 Subject: [PATCH 1/2] Make announcement box responsive --- frontend/src/global_styles/openproject/_announcements.sass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/global_styles/openproject/_announcements.sass b/frontend/src/global_styles/openproject/_announcements.sass index 07fe3a4ca73a..8a42ffdcbbcf 100644 --- a/frontend/src/global_styles/openproject/_announcements.sass +++ b/frontend/src/global_styles/openproject/_announcements.sass @@ -4,3 +4,5 @@ margin-top: 1rem width: 511px + @media screen and (max-width: $breakpoint-sm) + width: 100% From 413f76b72c9e0b15c7212512f701348f0e13b958 Mon Sep 17 00:00:00 2001 From: Henriette Darge Date: Mon, 11 Mar 2024 13:27:28 +0100 Subject: [PATCH 2/2] Cleanup login page styles (move away from floating layouts) --- app/views/account/_login.html.erb | 2 +- .../account/_password_login_form.html.erb | 36 ++++++------ .../src/global_styles/content/_accounts.sass | 31 ++--------- .../content/_accounts_mobile.sass | 26 +++------ .../global_styles/content/modules/_2fa.sass | 28 ---------- .../authentication/enter_backup_code.html.erb | 4 +- .../authentication/request_otp.html.erb | 55 +++++++++++-------- .../two_factor_devices/confirm.html.erb | 4 +- 8 files changed, 72 insertions(+), 114 deletions(-) diff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erb index 84f726cba1bd..05d3b052839b 100644 --- a/app/views/account/_login.html.erb +++ b/app/views/account/_login.html.erb @@ -77,7 +77,7 @@ See COPYRIGHT and LICENSE files for more details.   + value="<%=t(:button_login)%>" class="button -highlight button_no-margin" tabindex="1" /> diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb index ee1ef844a6b8..53e6283775ef 100644 --- a/app/views/account/_password_login_form.html.erb +++ b/app/views/account/_password_login_form.html.erb @@ -55,23 +55,27 @@ See COPYRIGHT and LICENSE files for more details. <% end %> - <%= submit_tag t(:button_login), - name: :login, - class: 'button -highlight', - data: { disable_with: t(:label_loading) } %> + - + <% end %> diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb index 9dcbe71a5677..55a88d9159b3 100644 --- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb +++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb @@ -43,20 +43,24 @@ <% end %> - - <% if resend_supported || has_other_devices || has_backup_codes %> - diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb index e763712635c0..3b1fcb07c865 100644 --- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb +++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb @@ -13,7 +13,7 @@ <%= styled_text_field_tag 'otp', nil, required: true, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, autofocus: true %> -
- + <% end %>