diff --git a/changedetectionio/blueprint/add_watch_ui/__init__.py b/changedetectionio/blueprint/add_watch_ui/__init__.py index b82532b89..66aeed67f 100644 --- a/changedetectionio/blueprint/add_watch_ui/__init__.py +++ b/changedetectionio/blueprint/add_watch_ui/__init__.py @@ -76,6 +76,9 @@ def construct_blueprint(datastore: ChangeDetectionStore): # Note this fetch never reaches difference_detection_processor.call_browser(), so it gets # no gating from there - it has to validate for itself. url = (request.form.get('url') or '').strip() + if not url.lower().startswith('http'): + url='https://' + url + ok, reason = is_fetch_url_allowed(url) if not ok: logger.warning(f"Add-watch snapshot: refused '{url}' - {reason}") diff --git a/changedetectionio/blueprint/add_watch_ui/templates/add-watch-ui.html b/changedetectionio/blueprint/add_watch_ui/templates/add-watch-ui.html index bbf07ef8d..303c3ce9d 100644 --- a/changedetectionio/blueprint/add_watch_ui/templates/add-watch-ui.html +++ b/changedetectionio/blueprint/add_watch_ui/templates/add-watch-ui.html @@ -15,7 +15,7 @@
- {{ render_nolabel_field(form.url, placeholder="https://...", required=true, class="pure-input-1") }} + {{ render_nolabel_field(form.url, placeholder="www.website.com/page.html", required=true, class="pure-input-1") }}
diff --git a/changedetectionio/static/styles/scss/parts/_add-watch.scss b/changedetectionio/static/styles/scss/parts/_add-watch.scss index b8e732fff..7ebfa28e0 100644 --- a/changedetectionio/static/styles/scss/parts/_add-watch.scss +++ b/changedetectionio/static/styles/scss/parts/_add-watch.scss @@ -170,10 +170,19 @@ body { } li { + list-style: none; + font-size: .9rem; + display: grid; + grid-template-columns: auto 1fr; + align-items: center; + gap: .5rem; + + input[type="radio"] { + flex: 0 0 auto; + } + > label { font-weight: normal; - margin: 0 !important; - padding-bottom: 0.5rem; } } @@ -181,32 +190,6 @@ body { // a radio list whose labels wrap inside the narrow pane instead of a