Show contributor/contribution details on mobile #169

Merged
galfert merged 2 commits from feature/163-small_screen_details_new into master 2019-12-02 14:57:23 +00:00
3 changed files with 16 additions and 4 deletions
@@ -84,5 +84,17 @@ section#contribution-details {
} }
} }
} }
}
// On small screens, hide intro text, contributor and contributions list when
// showing details
@include media-max(small) {
#dashboard.with-details {
#contributions, #stats {
display: none;
}
}
#intro.with-details {
display: none;
}
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{{#if showIntroText}} {{#if showIntroText}}
<div id="intro"> <div id="intro" class={{if showDetailsPane "with-details"}}>
<h2> <h2>
Welcome to the contribution dashboard of the Welcome to the contribution dashboard of the
<a href="https://kosmos.org" target="_blank" rel="noopener">Kosmos</a> project! <a href="https://kosmos.org" target="_blank" rel="noopener">Kosmos</a> project!
@@ -42,7 +42,7 @@
kredits will be issued. kredits will be issued.
</p> </p>
<p> <p>
{{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}. {{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}
</p> </p>
</div> </div>
{{/if}} {{/if}}
@@ -50,7 +50,7 @@
<div class="actions"> <div class="actions">
<p> <p>
{{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}} {{#if model.ipfsHash}}
<a href="{{ipfsGatewayUrl}}/{{model.ipfsHash}}" <a href="{{ipfsGatewayUrl}}/{{model.ipfsHash}}"
class="button small" target="_blank" rel="noopener"> class="button small" target="_blank" rel="noopener">