Skip to content

Commit

Permalink
Show contributor/contribution details on mobile
Browse files Browse the repository at this point in the history
Refs #163

On small screens, when selecting a contribution or contributor, the
lists are hidden and only the details are shown.
  • Loading branch information
galfert committed Nov 29, 2019
1 parent 8c75960 commit 9898d4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/styles/components/_contribution-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
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 9898d4b

Please sign in to comment.