From e10d21240cca7b20a96a7f0edc5897421a4ad28d Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 20 Nov 2018 11:31:40 +1300 Subject: [PATCH] Fix Submit/Edit layer form field rendering issue Some controls on the Submit / Edit Layer page were getting the wrong width and any "feedback" elements were being pulled to the right because of the size of their parent divs. Instead of pulling in the size of the form control, act on the div to fix the problem. Additionally the help text should now be allowed to expand to the full width of the parent div since that is now sensible. Signed-off-by: Paul Eggleton --- layerindex/static/css/additional.css | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/layerindex/static/css/additional.css b/layerindex/static/css/additional.css index bf470f7..ea4e555 100644 --- a/layerindex/static/css/additional.css +++ b/layerindex/static/css/additional.css @@ -85,11 +85,7 @@ padding: 8px; padding-bottom: 0.75em; } -.formfields input { - width: 50%; -} - -.formfields textarea { +.formfields > div { width: 50%; } @@ -118,7 +114,6 @@ padding: 8px; .custom-help { margin-left: 10px; - max-width: 40%; color: #999; vertical-align:top; }