From f0e2f1de8af545beeee6f1d739ecab81ea0c49e3 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Mon, 16 Sep 2013 15:31:29 +0200 Subject: [PATCH] Fix syling of long labels in modal Our forms use a fixed width per default, for nice alignment of multiple form field. This is not neccessary on single-field preference forms. Mantis: 3827 --- lib/NGCP/Panel/Form/Preferences.pm | 2 +- share/static/css/main.css | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Form/Preferences.pm b/lib/NGCP/Panel/Form/Preferences.pm index 097c9a9486..77ab0a9d20 100644 --- a/lib/NGCP/Panel/Form/Preferences.pm +++ b/lib/NGCP/Panel/Form/Preferences.pm @@ -19,7 +19,7 @@ has 'fields_data' => (is => 'rw'); has_block 'fields' => ( tag => 'div', - class => [qw/modal-body/], + class => [qw/modal-body ngcp-modal-preferences/], ); sub field_list { diff --git a/share/static/css/main.css b/share/static/css/main.css index 8c387a4fcc..41fd90c1c2 100644 --- a/share/static/css/main.css +++ b/share/static/css/main.css @@ -329,6 +329,15 @@ div.ngcp-modal .control-group.error .dataTables_wrapper input[type="text"] { text-decoration: line-through; } +.ngcp-modal-preferences .control-group .control-label { + width: auto; + padding-right: 10px; +} + +.ngcp-modal-preferences .control-group .controls { + overflow: hidden; +} + /* --------- Widgets ------------*/