Skip to content

Commit

Permalink
fix: privileges page - tweak icon position and width, group name wrap…
Browse files Browse the repository at this point in the history
…ping
  • Loading branch information
julianlam committed Feb 3, 2021
1 parent 970bd06 commit c729ade
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions public/less/admin/manage/privileges.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
}

.privilege-table {
td:first-child {
white-space: nowrap;
}

td[data-delta="true"] > input {
&:after {
border-color: @state-success-text;
Expand Down
6 changes: 4 additions & 2 deletions src/views/admin/partials/privileges/category.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
<td>
{{{ if privileges.groups.isPrivate }}}
{{{ 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 }}}
<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 }}}
{{{ else }}}
<i class="fa fa-fw fa-none"></i>
{{{ end }}}
{privileges.groups.name}
</td>
Expand Down
6 changes: 4 additions & 2 deletions src/views/admin/partials/privileges/global.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
<td>
{{{ if privileges.groups.isPrivate }}}
{{{ 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 }}}
<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 }}}
{{{ else }}}
<i class="fa fa-fw fa-none"></i>
{{{ end }}}
{privileges.groups.name}
</td>
Expand Down

0 comments on commit c729ade

Please sign in to comment.