fix: privileges page - tweak icon position and width, group name wrapping

This commit is contained in:
Julian Lam
2021-02-03 12:54:42 -05:00
parent 970bd06fd2
commit c729adeb08
3 changed files with 12 additions and 4 deletions

View File

@@ -12,6 +12,10 @@
} }
.privilege-table { .privilege-table {
td:first-child {
white-space: nowrap;
}
td[data-delta="true"] > input { td[data-delta="true"] > input {
&:after { &:after {
border-color: @state-success-text; border-color: @state-success-text;

View File

@@ -32,10 +32,12 @@
<td> <td>
{{{ if privileges.groups.isPrivate }}} {{{ if privileges.groups.isPrivate }}}
{{{ if (privileges.groups.name == "banned-users") }}} {{{ if (privileges.groups.name == "banned-users") }}}
<i class="fa fa-exclamation-triangle text-muted" title="[[admin/manage/categories:privileges.inheritance-exception]]"></i> <i class="fa fa-fw fa-exclamation-triangle text-muted" title="[[admin/manage/categories:privileges.inheritance-exception]]"></i>
{{{ else }}} {{{ else }}}
<i class="fa fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i> <i class="fa fa-fw fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i>
{{{ end }}} {{{ end }}}
{{{ else }}}
<i class="fa fa-fw fa-none"></i>
{{{ end }}} {{{ end }}}
{privileges.groups.name} {privileges.groups.name}
</td> </td>

View File

@@ -15,10 +15,12 @@
<td> <td>
{{{ if privileges.groups.isPrivate }}} {{{ if privileges.groups.isPrivate }}}
{{{ if (privileges.groups.name == "banned-users") }}} {{{ if (privileges.groups.name == "banned-users") }}}
<i class="fa fa-exclamation-triangle text-muted" title="[[admin/manage/categories:privileges.inheritance-exception]]"></i> <i class="fa fa-fw fa-exclamation-triangle text-muted" title="[[admin/manage/categories:privileges.inheritance-exception]]"></i>
{{{ else }}} {{{ else }}}
<i class="fa fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i> <i class="fa fa-fw fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i>
{{{ end }}} {{{ end }}}
{{{ else }}}
<i class="fa fa-fw fa-none"></i>
{{{ end }}} {{{ end }}}
{privileges.groups.name} {privileges.groups.name}
</td> </td>