Skip to content

Commit

Permalink
Merge pull request #169 from 67P/feature/163-small_screen_details_new
Browse files Browse the repository at this point in the history
Show contributor/contribution details on mobile
  • Loading branch information
raucao authored Dec 2, 2019
2 parents b397e4f + 2561970 commit 9c063b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions app/styles/components/_contribution-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion app/templates/dashboard.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if showIntroText}}
<div id="intro">
<div id="intro" class={{if showDetailsPane "with-details"}}>
<h2>
Welcome to the contribution dashboard of the
<a href="https://kosmos.org" target="_blank" rel="noopener">Kosmos</a> project!
Expand Down
4 changes: 2 additions & 2 deletions app/templates/dashboard/contributions/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
kredits will be issued.
</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>
</div>
{{/if}}
</div>

<div class="actions">
<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}}
<a href="{{ipfsGatewayUrl}}/{{model.ipfsHash}}"
class="button small" target="_blank" rel="noopener">
Expand Down

0 comments on commit 9c063b8

Please sign in to comment.