fix(profile): Tweak CSS so that the group names don't overflow

We do not really lose any information as all groups end with
`@sso.dgnum.eu`
This commit is contained in:
Tom Hubrecht 2024-09-23 16:53:40 +02:00
parent 26fdcbe8ef
commit 0c54fd29ab
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
2 changed files with 8 additions and 1 deletions

View file

@ -37,6 +37,11 @@ body {
--bulma-grid-column-min: 24rem; --bulma-grid-column-min: 24rem;
} }
.groups > .button > span {
overflow-x: hidden;
text-overflow: ellipsis;
}
#notifications { #notifications {
margin-left: -0.75rem; margin-left: -0.75rem;
margin-right: -0.75rem; margin-right: -0.75rem;

View file

@ -41,7 +41,9 @@
<div class="grid groups"> <div class="grid groups">
{% for group in user.kanidm.person.memberof %} {% for group in user.kanidm.person.memberof %}
<span class="cell button is-fullwidth is-static">{{ group }}</span> <div class="cell button is-static">
<span>{{ group }}</span>
</div>
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}