From 220a40f8ce5f7a50976fd3fe2319b5523262a4f4 Mon Sep 17 00:00:00 2001 From: Matt Fullerton Date: Mon, 2 Oct 2017 11:49:33 +0200 Subject: [PATCH] When using the plain text editor, also use a height of 400px Fixes https://github.com/NRGI/resourcedata.org/issues/170 --- ckanext/pages/theme/resources/styles/pages.css | 4 +++- ckanext/pages/theme/resources/styles/pages.less | 3 +++ .../pages/theme/templates_main/ckanext_pages/base_form.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ckanext/pages/theme/resources/styles/pages.css b/ckanext/pages/theme/resources/styles/pages.css index 343d2304..7ef087b2 100644 --- a/ckanext/pages/theme/resources/styles/pages.css +++ b/ckanext/pages/theme/resources/styles/pages.css @@ -4,7 +4,6 @@ .page-list-item .image { width: 168px; /* hack for default theme */ - } .page-list-item .image a { display: block; @@ -15,3 +14,6 @@ .page-list-item h3 a { display: block; } +.page-simple-form-height { + height: 400px !important; +} diff --git a/ckanext/pages/theme/resources/styles/pages.less b/ckanext/pages/theme/resources/styles/pages.less index 77ad1856..bbf52b38 100644 --- a/ckanext/pages/theme/resources/styles/pages.less +++ b/ckanext/pages/theme/resources/styles/pages.less @@ -14,3 +14,6 @@ .page-list-item h3 a { display:block; } +.page-simple-form-height { + height: 400px !important; +} diff --git a/ckanext/pages/theme/templates_main/ckanext_pages/base_form.html b/ckanext/pages/theme/templates_main/ckanext_pages/base_form.html index a06097f4..58721e4b 100644 --- a/ckanext/pages/theme/templates_main/ckanext_pages/base_form.html +++ b/ckanext/pages/theme/templates_main/ckanext_pages/base_form.html @@ -103,7 +103,7 @@

{{ _('Edit page') }}

{% else %} - {{ form.markdown('content', id='field-content', label=_('Content'), placeholder=_('Enter content here'), value=data.content, error=errors.content) }} + {{ form.markdown('content', id='field-content', attrs={'class': 'form-control page-simple-form-height'}, label=_('Content'), placeholder=_('Enter content here'), value=data.content, error=errors.content) }} {% endif %}