diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | templates/web/base/report/update.html | 2 | ||||
-rw-r--r-- | web/cobrands/sass/_layout.scss | 9 |
3 files changed, 4 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9432566db..bfdbe4549 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Cobrands hook to remove phone number field. #2049 - Check recent reports for any hidden since cached. #2053 - Asset layer attribution automatically shown. #2061 + - The .internal-link-fixed-header positioning is now much simpler. #2117 - Bugfixes: - Stop asset layers obscuring marker layer. #1999 - Don't delete hidden field values when inspecting reports. #1999 diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html index bd66c7b13..4dd12cf5e 100644 --- a/templates/web/base/report/update.html +++ b/templates/web/base/report/update.html @@ -4,6 +4,7 @@ <ul class="item-list item-list--updates"> [% END %] <li class="item-list__item item-list__item--updates"> + <a name="update_[% update.id %]" class="internal-link-fixed-header"></a> [% IF permissions.moderate; original_update = update.moderation_original_data %] <form method="post" action="/moderate/report/[% problem.id %]/update/[% update.id %]"> <input type="hidden" name="token" value="[% csrf_token %]"> @@ -25,7 +26,6 @@ <p class="meta-2">[% INCLUDE meta_line %]</p> </div> [% ELSE %] - <a name="update_[% update.id %]" class="internal-link-fixed-header"></a> [% INCLUDE 'report/photo.html' object=update %] <div class="item-list__update-text"> <div class="moderate-display"> diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index e996dd123..13c2dff72 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -13,13 +13,8 @@ $header-top-border: $header-top-border-width solid $primary !default; .internal-link-fixed-header { display: block; - @if unit($mappage-header-height) == 'em' { - padding-top: $mappage-header-height + 1em; - margin-top: -($mappage-header-height + 1em); - } @else { - padding-top: $mappage-header-height + 16px; - margin-top: -($mappage-header-height + 16px); - } + position: relative; + top: -2em; } //hacks for desk/mob only stuff |