make rows have smaller height on mobile

pull/225/head
Aevann 2024-03-02 17:17:20 +02:00
parent ce41d9977f
commit 6be9c7ac34
4 changed files with 12 additions and 8 deletions

View File

@ -7754,3 +7754,7 @@ img[alpha]:not([alt*="#"]) {
.hole-settings-section h4 {
margin-top: 0.25rem;
}
td[data-time] {
white-space: pre;
}

View File

@ -55,9 +55,9 @@
<th>Type</th>
<th>Title</th>
<th>Link</th>
<th class="disable-sort-click"></th>
<th>Starts on</th>
<th>Ends on</th>
<th class="disable-sort-click"></th>
</tr>
</thead>
@ -66,15 +66,15 @@
<td>{{orgy.type}}</td>
<td>{{orgy.title}}</td>
<td>{{orgy.data}}</td>
<td>
<button type="button" class="btn btn-danger btn-block" data-nonce="{{g.nonce}}" data-areyousure="remove_orgy(this, {{orgy.created_utc}})" data-onclick="areyousure(this)">Remove</button>
</td>
{% if orgy.started %}
<td>Started</td>
{% else %}
<td data-time="{{orgy.start_utc}}"></td>
{% endif %}
<td {% if orgy.end_utc %}data-time="{{orgy.end_utc}}"{% endif %}></td>
<td>
<button type="button" class="btn btn-danger btn-block" data-nonce="{{g.nonce}}" data-areyousure="remove_orgy(this, {{orgy.created_utc}})" data-onclick="areyousure(this)">Remove</button>
</td>
</tr>
{% endfor %}
</table>

View File

@ -9,15 +9,14 @@
<tr>
<th>#</th>
<th>Name</th>
<th>Mod since</th>
<th class="disable-sort-click"></th>
<th>Mod since</th>
</tr>
</thead>
{% for user, mod in users %}
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td data-time="{{mod.created_utc}}"></td>
<td>
{% if v.id == user.id or v.mod_date(hole.name) and v.mod_date(hole.name) < mod.created_utc %}
<form action="/h/{{hole}}/remove_mod" method="post" data-nonce="{{g.nonce}}" data-onsubmit="removeMod(this)">
@ -27,6 +26,7 @@
</form>
{% endif %}
</td>
<td data-time="{{mod.created_utc}}"></td>
</tr>
{% endfor %}
</table>

View File

@ -7,22 +7,22 @@
<thead>
<tr>
<th>Name</th>
<th class="disable-sort-click">Muting notifications since</th>
{% if v.id == u.id %}
<th class="disable-sort-click"></th>
{% endif %}
<th class="disable-sort-click">Muting notifications since</th>
</tr>
</thead>
<tbody id="muters-table">
{% for mute, user in users %}
<tr>
<td>{% include "user_in_table.html" %}</td>
<td data-time="{{mute.created_utc}}"></td>
{% if v.id == u.id %}
<td>
<button type="button" class="btn btn-primary" data-nonce="{{g.nonce}}" data-onclick="unmute_notifs(this, '/unmute_notifs/{{user.id}}')">Unmute</button>
</td>
{% endif %}
<td data-time="{{mute.created_utc}}"></td>
</tr>
{% endfor %}
</tbody>