diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2018-05-08 09:37:44 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2018-05-08 10:10:13 +0100 |
commit | 3df63585a96b43de6295a39ec8dbf0ea64626983 (patch) | |
tree | 914ce389b13b48075ec60b19a6a843a71e2b122b /templates | |
parent | b78032651996f8326c73b6e7ff8280776aa1cc40 (diff) |
Simplify .internal-link-fixed-header positioning
Since #map_sidebar no longer disappears behind #site_header, there is
no need for .internal-link-fixed-header to compensate for the height
of the header. Just an arbitrary 2em offset is enough to prevent it
butting up against the top of the #map_sidebar scrollable element.
Meanwhile, moving the .internal-link-fixed-header anchor element to
the top of its parent list item means it no longer has to compensate
for the height of the moderation form elements, because those elements
(indeed, the entire list item <form>) now comes *after* the anchor.
Fixes mysociety/fixmystreet-commercial#1027.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/update.html | 2 |
1 files changed, 1 insertions, 1 deletions
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"> |