From ae1013af82dbdac99ade8c6dcd659b0cc8a71dac Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Mon, 6 Aug 2018 14:13:10 +0100 Subject: [PATCH] fix button alignment on reviews admin bar --- opentech/apply/review/templates/review/review_list.html | 6 ++---- .../static_src/src/sass/apply/components/_wrapper.scss | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/opentech/apply/review/templates/review/review_list.html b/opentech/apply/review/templates/review/review_list.html index 8450319eb..710b97246 100644 --- a/opentech/apply/review/templates/review/review_list.html +++ b/opentech/apply/review/templates/review/review_list.html @@ -5,16 +5,14 @@ {% block content %} <div class="wrapper wrapper--breakout wrapper--admin"> - <div class="wrapper wrapper--medium"> + <div class="wrapper wrapper--medium wrapper--reviews"> <div> <h1 class="beta heading heading--no-margin heading--bold">Reviews</h1> <h5>For <a href="{% url "funds:submissions:detail" submission.id %}">{{ submission.title }}</a></h5> </div> {% if request.user|has_review_perm:submission %} {% if request.user|has_draft:submission or request.user|can_review:submission %} - <div class="wrapper wrapper--cta-box"> - {% include 'review/includes/review_button.html' with submission=submission %} - </div> + {% include 'review/includes/review_button.html' with submission=submission %} {% endif %} {% endif %} </div> diff --git a/opentech/static_src/src/sass/apply/components/_wrapper.scss b/opentech/static_src/src/sass/apply/components/_wrapper.scss index 311fab96c..90bfb7424 100644 --- a/opentech/static_src/src/sass/apply/components/_wrapper.scss +++ b/opentech/static_src/src/sass/apply/components/_wrapper.scss @@ -321,4 +321,13 @@ cursor: all-scroll; } } + + &--reviews { + @include media-query(tablet-portrait) { + display: flex; + align-items: center; + flex-direction: row; + justify-content: space-between; + } + } } -- GitLab