From 9898d4bb1d4b32ce0ee4ad05acb65fd25d140c92 Mon Sep 17 00:00:00 2001
From: Garret Alfert
Date: Fri, 29 Nov 2019 18:05:52 +0100
Subject: [PATCH] Show contributor/contribution details on mobile
Refs #163
On small screens, when selecting a contribution or contributor, the
lists are hidden and only the details are shown.
---
app/styles/components/_contribution-details.scss | 11 ++++++++++-
app/templates/dashboard/contributions/show.hbs | 4 ++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/app/styles/components/_contribution-details.scss b/app/styles/components/_contribution-details.scss
index 80c04b6..49dfb27 100644
--- a/app/styles/components/_contribution-details.scss
+++ b/app/styles/components/_contribution-details.scss
@@ -84,5 +84,14 @@ section#contribution-details {
}
}
}
-
+}
+
+// On small screens, hide contributor and contributions list when
+// showing details
+@include media-max(small) {
+ #dashboard.with-details {
+ #contributions, #stats {
+ display: none;
+ }
+ }
}
diff --git a/app/templates/dashboard/contributions/show.hbs b/app/templates/dashboard/contributions/show.hbs
index 73a1de2..9760897 100644
--- a/app/templates/dashboard/contributions/show.hbs
+++ b/app/templates/dashboard/contributions/show.hbs
@@ -42,7 +42,7 @@
kredits will be issued.
- {{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}.
+ {{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}
{{/if}}
@@ -50,7 +50,7 @@
- {{link-to "Copy & edit as new" "contributions.resubmit" model class="button small"}}.
+ {{link-to "Copy & edit as new" "contributions.resubmit" model class="button small"}}
{{#if model.ipfsHash}}