fix(dgsi/user_list): Improve the mobile view
This commit is contained in:
parent
d34e500ea6
commit
79172f4ec0
2 changed files with 27 additions and 16 deletions
|
@ -5,21 +5,23 @@
|
|||
{% block content %}
|
||||
{% include "_subtitle.html" with subtitle="Comptes DG·SI" %}
|
||||
|
||||
<table class="table is-fullwidth is-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Nom d'utilisateur" %}</th>
|
||||
<th>{% trans "Nom d'usage" %}</th>
|
||||
<th>{% trans "Adresse e-mail" %}</th>
|
||||
<th>{% trans "VLAN attribué" %}</th>
|
||||
<th>{% trans "Gestion du VLAN" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for person in user_list %}
|
||||
{% include "dgsi/partials/user_list-user.html" %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table-container">
|
||||
<table class="table is-fullwidth is-striped is-narrow">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Nom d'utilisateur" %}</th>
|
||||
<th>{% trans "Nom d'usage" %}</th>
|
||||
<th>{% trans "Adresse e-mail" %}</th>
|
||||
<th>{% trans "VLAN attribué" %}</th>
|
||||
<th>{% trans "Gestion du VLAN" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="is-centered">
|
||||
{% for person in user_list %}
|
||||
{% include "dgsi/partials/user_list-user.html" %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
|
|
9
src/shared/static/bulma/bulma.scss
vendored
9
src/shared/static/bulma/bulma.scss
vendored
|
@ -13,6 +13,15 @@ $dark: rgb(46, 46, 46);
|
|||
@use "./sass/utilities/mixins" as mx;
|
||||
@use "./sass/utilities/initial-variables.scss" as iv;
|
||||
|
||||
tbody {
|
||||
&.is-centered {
|
||||
th,
|
||||
td {
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
|
|
Loading…
Add table
Reference in a new issue