diff --git a/app/assets/stylesheets/components/table.scss b/app/assets/stylesheets/components/table.scss index cd9b1643f..f47160917 100644 --- a/app/assets/stylesheets/components/table.scss +++ b/app/assets/stylesheets/components/table.scss @@ -51,6 +51,44 @@ } +.settings-table { + + table { + table-layout: fixed; + } + + th { + + &.table-field-heading-first { + width: 35%; // 33.33% + fudge + } + + &:last-child { + width: 17.5% // 16.67% + fudge + } + + } + + td { + + &:first-child { + + div { + white-space: normal; + } + + } + + div { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + } + +} + %table-field, .table-field { diff --git a/app/templates/views/organisations/organisation/settings/index.html b/app/templates/views/organisations/organisation/settings/index.html index 59739904b..f1f6c5a54 100644 --- a/app/templates/views/organisations/organisation/settings/index.html +++ b/app/templates/views/organisations/organisation/settings/index.html @@ -29,7 +29,7 @@ {% if current_user.platform_admin %}

Platform admin settings

-
+
{% call mapping_table( caption='Platform admin settings', field_headings=['Label', 'Value', 'Action'], diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index 6b81af730..91cb71aed 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -10,7 +10,7 @@

Settings

-
+
{% call mapping_table( caption='General',