diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index 19056b5d..f99496e5 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -496,7 +496,7 @@ class processor_text_json_diff_form(commonSettingsForm): text_should_not_be_present = StringListField('Block change-detection while text matches', [validators.Optional(), ValidateListRegex()]) webdriver_js_execute_code = TextAreaField('Execute JavaScript before change detection', render_kw={"rows": "5"}, validators=[validators.Optional()]) - save_button = SubmitField('Save', render_kw={"class": "pure-button pure-button-primary"}) + save_button = SubmitField('Save', render_kw={"class": "pure-button button-small pure-button-primary"}) proxy = RadioField('Proxy') filter_failure_notification_send = BooleanField( @@ -616,7 +616,7 @@ class globalSettingsForm(Form): requests = FormField(globalSettingsRequestForm) application = FormField(globalSettingsApplicationForm) - save_button = SubmitField('Save', render_kw={"class": "pure-button pure-button-primary"}) + save_button = SubmitField('Save', render_kw={"class": "pure-button button-small pure-button-primary"}) class extractDataForm(Form): diff --git a/changedetectionio/static/styles/diff.css b/changedetectionio/static/styles/diff.css index 4f264198..46bc0be4 100644 --- a/changedetectionio/static/styles/diff.css +++ b/changedetectionio/static/styles/diff.css @@ -153,7 +153,8 @@ html[data-darkmode="true"] { border: 1px solid transparent; vertical-align: top; font: 1em monospace; - text-align: left; } + text-align: left; + overflow: clip; } #diff-ui pre { white-space: pre-wrap; } @@ -172,7 +173,9 @@ ins { text-decoration: none; } #result { - white-space: pre-wrap; } + white-space: pre-wrap; + word-break: break-word; + overflow-wrap: break-word; } #settings { background: rgba(0, 0, 0, 0.05); @@ -231,3 +234,12 @@ td#diff-col div { border-radius: 5px; background: var(--color-background); box-shadow: 1px 1px 4px var(--color-shadow-jump); } + +.pure-form button.reset-margin { + margin: 0px; } + +.diff-fieldset { + display: flex; + align-items: center; + gap: 4px; + flex-wrap: wrap; } diff --git a/changedetectionio/static/styles/scss/diff.scss b/changedetectionio/static/styles/scss/diff.scss index bad947b2..f34b07ef 100644 --- a/changedetectionio/static/styles/scss/diff.scss +++ b/changedetectionio/static/styles/scss/diff.scss @@ -24,6 +24,7 @@ vertical-align: top; font: 1em monospace; text-align: left; + overflow: clip; // clip overflowing contents to cell boundariess } pre { @@ -50,6 +51,8 @@ ins { #result { white-space: pre-wrap; + word-break: break-word; + overflow-wrap: break-word; .change { span {} @@ -134,3 +137,15 @@ td#diff-col div { background: var(--color-background); box-shadow: 1px 1px 4px var(--color-shadow-jump); } + +// resets button margin to 0px +.pure-form button.reset-margin { + margin: 0px; +} + +.diff-fieldset { + display: flex; + align-items: center; + gap: 4px; + flex-wrap: wrap; +} \ No newline at end of file diff --git a/changedetectionio/static/styles/scss/parts/_extra_browsers.scss b/changedetectionio/static/styles/scss/parts/_extra_browsers.scss index da0204ad..b1e60e8a 100644 --- a/changedetectionio/static/styles/scss/parts/_extra_browsers.scss +++ b/changedetectionio/static/styles/scss/parts/_extra_browsers.scss @@ -11,7 +11,22 @@ ul#requests-extra_browsers { /* each proxy entry is a `table` */ table { tr { - display: inline; + display: table-row; // default display for small screens + input[type=text] { + width: 100%; + } + } + } + + // apply inline display for larger screens + @media only screen and (min-width: 1280px) { + table { + tr { + display: inline; + input[type=text] { + width: 100%; + } + } } } } diff --git a/changedetectionio/static/styles/scss/parts/_extra_proxies.scss b/changedetectionio/static/styles/scss/parts/_extra_proxies.scss index 3aec343c..68322658 100644 --- a/changedetectionio/static/styles/scss/parts/_extra_proxies.scss +++ b/changedetectionio/static/styles/scss/parts/_extra_proxies.scss @@ -11,7 +11,19 @@ ul#requests-extra_proxies { /* each proxy entry is a `table` */ table { tr { - display: inline; + display: table-row; // default display for small screens + input[type=text] { + width: 100%; + } + } + } + + // apply inline display for large screens + @media only screen and (min-width: 1024px) { + table { + tr { + display: inline; + } } } } diff --git a/changedetectionio/static/styles/styles.css b/changedetectionio/static/styles/styles.css index 11c57e89..1600fde3 100644 --- a/changedetectionio/static/styles/styles.css +++ b/changedetectionio/static/styles/styles.css @@ -112,7 +112,12 @@ ul#requests-extra_proxies { ul#requests-extra_proxies li > label { display: none; } ul#requests-extra_proxies table tr { - display: inline; } + display: table-row; } + ul#requests-extra_proxies table tr input[type=text] { + width: 100%; } + @media only screen and (min-width: 1024px) { + ul#requests-extra_proxies table tr { + display: inline; } } #request { /* Auto proxy scan/checker */ } @@ -161,7 +166,14 @@ ul#requests-extra_browsers { ul#requests-extra_browsers li > label { display: none; } ul#requests-extra_browsers table tr { - display: inline; } + display: table-row; } + ul#requests-extra_browsers table tr input[type=text] { + width: 100%; } + @media only screen and (min-width: 1280px) { + ul#requests-extra_browsers table tr { + display: inline; } + ul#requests-extra_browsers table tr input[type=text] { + width: 100%; } } #extra-browsers-setting { border: 1px solid var(--color-grey-800); diff --git a/changedetectionio/templates/diff.html b/changedetectionio/templates/diff.html index c82a559e..ecf05acc 100644 --- a/changedetectionio/templates/diff.html +++ b/changedetectionio/templates/diff.html @@ -14,7 +14,7 @@
-
+
{% if versions|length >= 1 %} Compare from @@ -33,7 +33,7 @@ {% endfor %} - + {% endif %}
diff --git a/changedetectionio/templates/settings.html b/changedetectionio/templates/settings.html index e39c4081..53006c62 100644 --- a/changedetectionio/templates/settings.html +++ b/changedetectionio/templates/settings.html @@ -276,7 +276,7 @@ nav
{{ render_button(form.save_button) }} Back - Clear Snapshot History + Clear Snapshot History