add a modifier for breaking words if necessary

Signed-off-by: Florian Kraft <f.kraft@finn.de>
pull/3051/head
Florian Kraft 10 years ago
parent b82772dfae
commit 50cd573089
  1. 5
      app/assets/stylesheets/content/_forms.sass
  2. 2
      app/helpers/work_packages_helper.rb

@ -535,6 +535,11 @@ fieldset.form--fieldset
& > [data-tooltip], & > [class^="tooltip--"]
padding-top: 0.6rem
.form--field
& .-break-words > .form--label
text-overflow: ellipsis
overflow: hidden
.form--list
display: flex
margin: 0

@ -434,7 +434,7 @@ module WorkPackagesHelper
end
def work_package_form_field(required: false, classes: '')
div_class = 'form--field -wide-label'
div_class = 'form--field -wide-label -break-words'
div_class << " #{classes}"
div_class << ' -required' if required

Loading…
Cancel
Save