From 89f906b1b10d3558dcc709ac457a7011991a7e62 Mon Sep 17 00:00:00 2001
From: flaburgan
Date: Mon, 13 Nov 2023 22:13:44 +0100
Subject: [PATCH] Fix horizontal scroll and captcha on mobile, host for user id
---
app/assets/stylesheets/registration.scss | 6 +++---
app/views/registrations/_new.erb | 4 ++--
app/views/simple_captcha/_simple_captcha.mobile.haml | 3 ---
3 files changed, 5 insertions(+), 8 deletions(-)
delete mode 100644 app/views/simple_captcha/_simple_captcha.mobile.haml
diff --git a/app/assets/stylesheets/registration.scss b/app/assets/stylesheets/registration.scss
index 346a190c3..9738ca6cc 100644
--- a/app/assets/stylesheets/registration.scss
+++ b/app/assets/stylesheets/registration.scss
@@ -2,9 +2,9 @@
// For the mobile version which doesn't have the same global CSS
background: $body-bg;
- #app {
- margin: -10px;
- margin-bottom: 10px;
+ #main {
+ padding: 0;
+ padding-top: 46px;
}
// End specific mobile
diff --git a/app/views/registrations/_new.erb b/app/views/registrations/_new.erb
index b0d621842..923c1b41d 100644
--- a/app/views/registrations/_new.erb
+++ b/app/views/registrations/_new.erb
@@ -12,7 +12,7 @@
- @<%= AppConfig.pod_uri.host %>
+ <%= User.diaspora_id_host %>
<%= t("registrations.new.username_advice") %>
@@ -74,4 +74,4 @@
<% end %>
-
\ No newline at end of file
+
diff --git a/app/views/simple_captcha/_simple_captcha.mobile.haml b/app/views/simple_captcha/_simple_captcha.mobile.haml
deleted file mode 100644
index 53f420b11..000000000
--- a/app/views/simple_captcha/_simple_captcha.mobile.haml
+++ /dev/null
@@ -1,3 +0,0 @@
-.form-group#captcha
- = simple_captcha_options[:image]
- = simple_captcha_options[:field]