From 7cf38f115ca84bf687ba3bf42283e52ba6564157 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 11 Sep 2017 19:08:39 +0100 Subject: [PATCH] Set preview dropdown button to 250px (desktop) / 100% (mobile) Re-fixes #3784, without breaking non-dropdown save buttons as a side effect (#3836). --- CHANGELOG.txt | 1 + docs/releases/1.12.2.rst | 1 + .../wagtailadmin/static_src/wagtailadmin/scss/core.scss | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 36e698d5f..c831261ab 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -7,6 +7,7 @@ Changelog * Fix: Migration for addition of `Page.draft_title` field is now reversible (Venelin Stoykov) * Fix: Fixed failure on application startup when `ManifestStaticFilesStorage` is in use and `collectstatic` has not yet been run (Matt Westcott) * Fix: Fixed handling of Vimeo and other oEmbed providers with a format parameter in the endpoint URL (Mitchel Cabuloy) + * Fix: Fixed regression in rendering save button in wagtail.contrib.settings edit view (Matt Westcott) 1.12.1 (30.08.2017) diff --git a/docs/releases/1.12.2.rst b/docs/releases/1.12.2.rst index 99ad80784..e46039ec1 100644 --- a/docs/releases/1.12.2.rst +++ b/docs/releases/1.12.2.rst @@ -16,3 +16,4 @@ Bug fixes * Migration for addition of ``Page.draft_title`` field is now reversible (Venelin Stoykov) * Fixed failure on application startup when ``ManifestStaticFilesStorage`` is in use and ``collectstatic`` has not yet been run (Matt Westcott) * Fixed handling of Vimeo and other oEmbed providers with a format parameter in the endpoint URL (Mitchel Cabuloy) + * Fixed regression in rendering save button in wagtail.contrib.settings edit view (Matt Westcott) diff --git a/wagtail/wagtailadmin/static_src/wagtailadmin/scss/core.scss b/wagtail/wagtailadmin/static_src/wagtailadmin/scss/core.scss index 24acc0994..24f9a5837 100644 --- a/wagtail/wagtailadmin/static_src/wagtailadmin/scss/core.scss +++ b/wagtail/wagtailadmin/static_src/wagtailadmin/scss/core.scss @@ -143,6 +143,10 @@ footer { margin-right: $grid-gutter-width / 2; } + .preview .dropdown { + width: 250px; + } + .meta { float: right; text-align: right; @@ -166,7 +170,8 @@ footer { @media screen and (max-width: $breakpoint-mobile) { .actions, - .preview { + .preview, + .preview .dropdown { width: 100%; }