UI - CSS - Fix on sorting row wrapping issue (#2680)

better-40x-message
Emmanuel Ojighoro 1 month ago committed by GitHub
parent 043378d09c
commit 7ff34baa90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -679,6 +679,12 @@ footer {
tr { tr {
th { th {
display: inline-block; display: inline-block;
// Hide the "Last" text for smaller screens
@media (max-width: 768px) {
.hide-on-mobile {
display: none;
}
}
} }
} }
.empty-cell { .empty-cell {

@ -960,7 +960,12 @@ footer {
.watch-table thead { .watch-table thead {
display: block; } display: block; }
.watch-table thead tr th { .watch-table thead tr th {
display: inline-block; } display: inline-block; } }
@media only screen and (max-width: 760px) and (max-width: 768px), (min-device-width: 768px) and (max-device-width: 800px) and (max-width: 768px) {
.watch-table thead tr th .hide-on-mobile {
display: none; } }
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 800px) {
.watch-table thead .empty-cell { .watch-table thead .empty-cell {
display: none; } display: none; }
.watch-table tbody td, .watch-table tbody td,

@ -78,8 +78,8 @@
{% if any_has_restock_price_processor %} {% if any_has_restock_price_processor %}
<th>Restock &amp; Price</th> <th>Restock &amp; Price</th>
{% endif %} {% endif %}
<th><a class="{{ 'active '+link_order if sort_attribute == 'last_checked' else 'inactive' }}" href="{{url_for('index', sort='last_checked', order=link_order, tag=active_tag_uuid)}}">Last Checked <span class='arrow {{link_order}}'></span></a></th> <th><a class="{{ 'active '+link_order if sort_attribute == 'last_checked' else 'inactive' }}" href="{{url_for('index', sort='last_checked', order=link_order, tag=active_tag_uuid)}}"><span class="hide-on-mobile">Last</span> Checked <span class='arrow {{link_order}}'></span></a></th>
<th><a class="{{ 'active '+link_order if sort_attribute == 'last_changed' else 'inactive' }}" href="{{url_for('index', sort='last_changed', order=link_order, tag=active_tag_uuid)}}">Last Changed <span class='arrow {{link_order}}'></span></a></th> <th><a class="{{ 'active '+link_order if sort_attribute == 'last_changed' else 'inactive' }}" href="{{url_for('index', sort='last_changed', order=link_order, tag=active_tag_uuid)}}"><span class="hide-on-mobile">Last</span> Changed <span class='arrow {{link_order}}'></span></a></th>
<th class="empty-cell"></th> <th class="empty-cell"></th>
</tr> </tr>
</thead> </thead>

Loading…
Cancel
Save