diff --git a/packages/rocketchat-authorization/client/stylesheets/permissions.less b/packages/rocketchat-authorization/client/stylesheets/permissions.less index 015c6dea3df..756999f86a3 100644 --- a/packages/rocketchat-authorization/client/stylesheets/permissions.less +++ b/packages/rocketchat-authorization/client/stylesheets/permissions.less @@ -8,74 +8,23 @@ } .permission-grid { - border-collapse: collapse; - overflow: hidden; - margin-bottom: 1em; - - td { - position: relative; - * { - color: @primary-font-color; - } + th { + white-space: normal; + text-align: center; + position: relative; + padding-top: 20px; } - - td:nth-child(n+2) { + td { text-align: center; width: 10%; } - - - td:nth-child(1) { - white-space: nowrap; - } - - td { - padding: 5px; - border: 1px solid @secondary-background-color; - } - - td:hover::after { - content: ""; + .icon-edit { + font-size: 80%; position: absolute; - background-color: @tertiary-font-color; - left: 0; - top: -5000px; - height: 10000px; - width: 100%; - z-index: -1; - } - - tbody { - tr:nth-child(even) td:first-child::before { - content: ""; - position: absolute; - background-color: @secondary-background-color; - top: 0; - left: -5000px; - width: 10000px; - height: 100%; - z-index: -10; - } - - tr:hover { - background-color: @tertiary-font-color; - } - - } - - thead { - tr { - background-color: @secondary-background-color; - } - td { - font-weight: bold; - a { - white-space: nowrap; - } - .icon-edit { - font-size: 80%; - } - } + padding-left: 2px; + top: 0; + left: 50%; + transform: translateX(-50%); } } diff --git a/packages/rocketchat-authorization/client/views/permissions.html b/packages/rocketchat-authorization/client/views/permissions.html index c895fea4c2d..83857c70ad8 100644 --- a/packages/rocketchat-authorization/client/views/permissions.html +++ b/packages/rocketchat-authorization/client/views/permissions.html @@ -6,14 +6,14 @@
| + | {{#each role}} - | + | {{_id}} - + | {{/each}}
|---|