Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflaburgan <flaburgan@geexxx.fr>2022-10-31 14:11:46 +0300
committerflaburgan <flaburgan@geexxx.fr>2022-10-31 14:11:46 +0300
commitfbc096c7a7adce2ed9726abbb711faa5cbb2bb6e (patch)
treefeaaf85516f212e11f4f8265e3cb39ed0623c454
parentbfe1b84a2e5963a6ff516f90579047040263a390 (diff)
Add info links (the ones in the footer in the desktop version) into the drawer for mobile, fixes #7949
-rw-r--r--app/assets/stylesheets/mobile/header.scss18
-rw-r--r--app/views/layouts/_drawer.mobile.haml3
-rw-r--r--app/views/shared/_links.haml2
3 files changed, 22 insertions, 1 deletions
diff --git a/app/assets/stylesheets/mobile/header.scss b/app/assets/stylesheets/mobile/header.scss
index 159e6a536..9e532921b 100644
--- a/app/assets/stylesheets/mobile/header.scss
+++ b/app/assets/stylesheets/mobile/header.scss
@@ -145,6 +145,9 @@ $mobile-navbar-height: 46px;
bottom: 0;
overflow: auto;
width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
li {
font-size: 1.8rem;
@@ -195,6 +198,21 @@ $mobile-navbar-height: 46px;
margin: 0;
padding: 0;
}
+
+ .info-links {
+ li {
+ font-size: 1.2rem;
+ line-height: 1.2;
+ }
+
+ a {
+ padding: 8px 25px;
+ }
+
+ .switch-to-touch {
+ display: none;
+ }
+ }
}
#main-nav, #drawer {
diff --git a/app/views/layouts/_drawer.mobile.haml b/app/views/layouts/_drawer.mobile.haml
index 61b6045dc..5087bec2d 100644
--- a/app/views/layouts/_drawer.mobile.haml
+++ b/app/views/layouts/_drawer.mobile.haml
@@ -61,3 +61,6 @@
= t("admins.admin_bar.report")
%li= link_to t("layouts.application.switch_to_standard_mode"), toggle_mobile_path
%li= link_to t("layouts.header.logout"), destroy_user_session_path, method: :delete
+
+ %ul.info-links
+ = render "shared/links"
diff --git a/app/views/shared/_links.haml b/app/views/shared/_links.haml
index 6dc53c6e2..b724c0d25 100644
--- a/app/views/shared/_links.haml
+++ b/app/views/shared/_links.haml
@@ -4,8 +4,8 @@
source_url.to_s,
title: t("layouts.application.source_package")
%li= link_to t("layouts.application.statistics_link"), statistics_path
-%li= link_to t("layouts.application.switch_to_touch_optimized_mode"), toggle_mobile_path
- if AppConfig.settings.terms.enable?
%li= link_to t("_terms"), terms_path
- unless AppConfig.admins.podmin_email.nil?
%li= mail_to AppConfig.admins.podmin_email, t("_podmin_mail")
+%li.switch-to-touch= link_to t("layouts.application.switch_to_touch_optimized_mode"), toggle_mobile_path