about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-02-13 02:52:34 +0100
committerGitHub <noreply@github.com>2022-02-13 02:52:34 +0100
commitbbd34744161fc46fa0e75d64e08a2f70d951bb40 (patch)
tree0f5e2062d67a85e70b3fcbd9aa8a4edc53e94623
parent62404668664e3349d87484f73b802f83efccbafa (diff)
Fix privacy policy link not being visible on small screens (#17533)
Fix #17482
-rw-r--r--app/javascript/styles/mastodon/footer.scss17
-rw-r--r--app/views/layouts/public.html.haml4
2 files changed, 20 insertions, 1 deletions
diff --git a/app/javascript/styles/mastodon/footer.scss b/app/javascript/styles/mastodon/footer.scss
index 00d290883..073ebda7e 100644
--- a/app/javascript/styles/mastodon/footer.scss
+++ b/app/javascript/styles/mastodon/footer.scss
@@ -90,6 +90,20 @@
         .column-4 {
           display: none;
         }
+
+        .column-2 h4 {
+          display: none;
+        }
+      }
+    }
+
+    .legal-xs {
+      display: none;
+      text-align: center;
+      padding-top: 20px;
+
+      @media screen and (max-width: $no-gap-breakpoint) {
+        display: block;
       }
     }
 
@@ -105,7 +119,8 @@
       }
     }
 
-    ul a {
+    ul a,
+    .legal-xs a {
       text-decoration: none;
       color: lighten($ui-base-color, 34%);
 
diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml
index 069931cfd..3a9ca7ed7 100644
--- a/app/views/layouts/public.html.haml
+++ b/app/views/layouts/public.html.haml
@@ -54,5 +54,9 @@
             %ul
               %li= link_to t('about.source_code'), Mastodon::Version.source_url
               %li= link_to t('about.apps'), 'https://joinmastodon.org/apps'
+        .legal-xs
+          = link_to "v#{Mastodon::Version.to_s}", Mastodon::Version.source_url
+          ·
+          = link_to t('about.privacy_policy'), terms_path
 
 = render template: 'layouts/application'