Remove bullets from lists in tables

I think this is something we inherited from the Digital Marketplace
code. We only use this for organisation settings are the moment, but
the list markers are redundant because each item will never wrap onto a
new line; it will truncate instead. Still keeps a little sliver of
spacing just so it doesn’t look like a paragraph.
This commit is contained in:
Chris Hill-Scott
2019-04-23 11:26:36 +01:00
parent d3caaf94b1
commit da19c0b4ad
4 changed files with 9 additions and 5 deletions

View File

@@ -85,6 +85,10 @@
text-overflow: ellipsis;
}
ul li {
margin-bottom: 5px;
}
}
}

View File

@@ -90,7 +90,7 @@
{% macro text_field(text, status='', truncate=false) -%}
{% call field(status=status) %}
{% if text is iterable and text is not string %}
<ul class="list list-bullet">
<ul>
{% for item in text %}
{% if item %}
<li>{{ item }}</li>

View File

@@ -29,7 +29,7 @@
{% if current_user.platform_admin %}
<h2 class="heading-medium">Platform admin settings</h2>
<div class="bottom-gutter-3-2 settings-table body-copy-table">
<div class="settings-table body-copy-table">
{% call mapping_table(
caption='Platform admin settings',
field_headings=['Label', 'Value', 'Action'],

View File

@@ -661,7 +661,7 @@ def test_upload_valid_csv_shows_preview_and_table(
(
'<td class="table-field-center-aligned"> '
'<div class="table-field-status-default"> '
'<ul class="list list-bullet"> '
'<ul> '
'<li>foo</li> <li>foo</li> <li>foo</li> '
'</ul> '
'</div> '
@@ -674,7 +674,7 @@ def test_upload_valid_csv_shows_preview_and_table(
(
'<td class="table-field-center-aligned"> '
'<div class="table-field-status-default"> '
'<ul class="list list-bullet"> '
'<ul> '
'<li>foo</li> <li>foo</li> <li>foo</li> '
'</ul> '
'</div> '
@@ -687,7 +687,7 @@ def test_upload_valid_csv_shows_preview_and_table(
(
'<td class="table-field-center-aligned"> '
'<div class="table-field-status-default"> '
'<ul class="list list-bullet"> '
'<ul> '
'<li>foo</li> <li>foo</li> '
'</ul> '
'</div> '