From 97af190910f72efa458d322b8183628a34f43e12 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 5 Oct 2024 16:53:45 +0200 Subject: [PATCH] UI - Live filters preview - Make it sticky in the viewport so its easier to build nice filters --- .../static/styles/scss/parts/_preview_text_filter.scss | 1 + changedetectionio/static/styles/styles.css | 1 + 2 files changed, 2 insertions(+) diff --git a/changedetectionio/static/styles/scss/parts/_preview_text_filter.scss b/changedetectionio/static/styles/scss/parts/_preview_text_filter.scss index 4385d6a0..de2502eb 100644 --- a/changedetectionio/static/styles/scss/parts/_preview_text_filter.scss +++ b/changedetectionio/static/styles/scss/parts/_preview_text_filter.scss @@ -24,6 +24,7 @@ body.preview-text-enabled { #text-preview { position: sticky; + top: 20px; padding-top: 1rem; padding-bottom: 1rem; display: block !important; diff --git a/changedetectionio/static/styles/styles.css b/changedetectionio/static/styles/styles.css index eb972642..16967df3 100644 --- a/changedetectionio/static/styles/styles.css +++ b/changedetectionio/static/styles/styles.css @@ -474,6 +474,7 @@ body.preview-text-enabled { display: none; } body.preview-text-enabled #text-preview { position: sticky; + top: 20px; padding-top: 1rem; padding-bottom: 1rem; display: block !important; }