ui: Hyphenate table headers, and optionally force-wrap them (#4441)

This commit is contained in:
Lars Eggert 2022-09-13 15:07:21 +01:00 committed by GitHub
parent d3f25a67b5
commit 5fcf2aa44a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -168,6 +168,16 @@ table tbody.meta {
}
}
// Try and hyphenate table headings
th {
hyphens: auto;
}
// Helper to make sure very wide tables work on narrow screens.
.wrap-anywhere {
overflow-wrap: anywhere;
}
// Highlight required form field labels with bi-asterisk
.required>label:after {
display: inline-block;

View file

@ -18,7 +18,7 @@
{% for group in workload %}
<h2 class="mt-5" id="{{ group.group_type|slugify }}">{{ group.group_type }} State Counts</h2>
<table class="table table-sm table-striped table-bordered tablesorter">
<thead>
<thead class="wrap-anywhere">
<tr>
<th scope="col" data-sort="name">Area Director</th>
{% for g, desc, up_is_good in group.group_names %}

View file

@ -9,7 +9,7 @@
{% origin %}
<h2 class="mt-3">Nomination status</h2>
<table class="table table-sm table-striped table-hover tablesorter">
<thead>
<thead class="wrap-anywhere">
<tr>
<th scope="col" data-sort="position">Position</th>
<th scope="col" data-sort="open">Open</th>