mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-13 10:28:51 -04:00
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:
@@ -85,6 +85,10 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
ul li {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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> '
|
||||
|
||||
Reference in New Issue
Block a user