diff --git a/app/assets/stylesheets/components/table.scss b/app/assets/stylesheets/components/table.scss index cd9b1643f..0209b4d44 100644 --- a/app/assets/stylesheets/components/table.scss +++ b/app/assets/stylesheets/components/table.scss @@ -51,6 +51,48 @@ } +.settings-table { + + table { + table-layout: fixed; + } + + th { + + &:first-child { + width: 35%; // 33.33% + fudge + } + + &:last-child { + width: 17.5% // 16.67% + fudge + } + + } + + td.table-field-left-aligned { + + &:first-child { + + div { + white-space: normal; + } + + } + + div { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + ul li { + margin-bottom: 5px; + } + + } + +} + %table-field, .table-field { diff --git a/app/templates/components/table.html b/app/templates/components/table.html index c5708512c..656ef1c47 100644 --- a/app/templates/components/table.html +++ b/app/templates/components/table.html @@ -67,7 +67,7 @@ {% macro field(align='left', status='', border=True) -%} - {% set field_alignment = 'table-field-right-aligned' if align == 'right' else 'table-field-center-aligned' %} + {% set field_alignment = 'table-field-right-aligned' if align == 'right' else 'table-field-left-aligned' %} {% set border = '' if border else 'table-field-noborder' %} @@ -90,7 +90,7 @@ {% macro text_field(text, status='', truncate=false) -%} {% call field(status=status) %} {% if text is iterable and text is not string %} -