diff --git a/backend/__init__.py b/backend/__init__.py index c48ce1ba2..9a92d456d 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -612,7 +612,8 @@ def changedetection_app(config=None, datastore_o=None): newest_version_timestamp=dates[0], current_previous_version=str(previous_version), current_diff_url=watch['url'], - extra_title=" - Diff - {}".format(watch['title'] if watch['title'] else watch['url'])) + extra_title=" - Diff - {}".format(watch['title'] if watch['title'] else watch['url']), + left_sticky= True ) return output diff --git a/backend/static/styles/styles.css b/backend/static/styles/styles.css index a163e74ad..21e0e3309 100644 --- a/backend/static/styles/styles.css +++ b/backend/static/styles/styles.css @@ -184,7 +184,7 @@ body:after, body:before { #diff-jump { position: fixed; left: 0px; - top: 80px; + top: 120px; background: #fff; padding: 10px; border-top-right-radius: 5px; @@ -209,13 +209,16 @@ footer { #feed-icon { vertical-align: middle; } -#version { +.sticky-tab { position: absolute; top: 80px; - right: 0px; font-size: 8px; background: #fff; padding: 10px; } + .sticky-tab#left-sticky { + left: 0px; } + .sticky-tab#right-sticky { + right: 0px; } #new-version-text a { color: #e07171; } diff --git a/backend/static/styles/styles.scss b/backend/static/styles/styles.scss index fa2058291..33c1de38d 100644 --- a/backend/static/styles/styles.scss +++ b/backend/static/styles/styles.scss @@ -246,7 +246,7 @@ body:after, body:before { #diff-jump { position: fixed; left: 0px; - top: 80px; + top: 120px; background: #fff; padding: 10px; border-top-right-radius: 5px; @@ -275,13 +275,18 @@ footer { vertical-align: middle; } -#version { +.sticky-tab { position: absolute; top: 80px; - right: 0px; font-size: 8px; background: #fff; padding: 10px; + &#left-sticky { + left: 0px; + } + &#right-sticky { + right: 0px; + } } #new-version-text a { diff --git a/backend/templates/base.html b/backend/templates/base.html index 612e1b47b..4171142e6 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -68,7 +68,9 @@ -
v{{ version }}
+ +{% if left_sticky %}
Show current snapshot
{% endif %} +{% if right_sticky %}
{{ right_sticky }}
{% endif %}
{% block header %}{% endblock %} diff --git a/backend/templates/diff.html b/backend/templates/diff.html index 3d5cee16e..c3969ad6f 100644 --- a/backend/templates/diff.html +++ b/backend/templates/diff.html @@ -30,7 +30,6 @@ Removed text Inserted Text - Show current snapshot