diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-11 12:13:10 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-01-11 12:13:10 +0100 |
commit | f8910ad898f6c24dcd5a7d14dff6d33dc754ea8f (patch) | |
tree | 3ff2a386323248e45767d1e7c6c423083f4783cd | |
parent | d56c566ff5b5584d1da03ceecf3b655ae36168f2 (diff) | |
download | nextcloud-server-f8910ad898f6c24dcd5a7d14dff6d33dc754ea8f.tar.gz nextcloud-server-f8910ad898f6c24dcd5a7d14dff6d33dc754ea8f.zip |
Fix popover and styling in user management
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | settings/css/settings.scss | 42 | ||||
-rw-r--r-- | settings/js/users/users.js | 11 | ||||
-rw-r--r-- | settings/templates/users/part.userlist.php | 31 |
3 files changed, 35 insertions, 49 deletions
diff --git a/settings/css/settings.scss b/settings/css/settings.scss index 268cb0eee5d..d2dd973e887 100644 --- a/settings/css/settings.scss +++ b/settings/css/settings.scss @@ -347,7 +347,7 @@ table.nostyle { } .token-list { td > a.icon { - opacity: 0; + transition: opacity 0.5s; } a.icon { @@ -563,36 +563,26 @@ tr:hover > td { } td.userActions { - width: 25px; - text-align: center; - position: relative; - .action { - position: relative; - top: 3px; - } + width: 44px; .toggleUserActions { - border: none; - background-color: rgba(0, 0, 0, 0); - width: 34px; - height: 34px; - margin: 0; - opacity: 0.5; - &:hover, - &:focus { - background-color: transparent; - opacity: 1; + width: 44px; + height: 44px; + position: relative; + .action { + display: block; + padding: 14px; + opacity: 0.5; + .icon-more { + display: inline-block; + } + &:hover, + &:focus { + opacity: 1; + } } } } -tr.active td.userActions .action { - opacity: 1; -} - -td.userActions .action:hover { - cursor: pointer; -} - div.recoveryPassword { left: 50em; display: block; diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 1d6cb93452a..5a337c38556 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -101,16 +101,9 @@ var UserList = { $tdSubadmins.find('.action').tooltip({placement: 'top'}); /** - * user actions menu + * hide user actions menu for current user */ - if ($tr.find('td.userActions > span > img').length === 0 && OC.currentUser !== user.name) { - var menuImage = $('<img class="svg action">').attr({ - src: OC.imagePath('core', 'actions/more') - }); - var menuLink = $('<span class="toggleUserActions"></span>') - .append(menuImage); - $tr.find('td.userActions > span').replaceWith(menuLink); - } else if (OC.currentUser === user.name) { + if (OC.currentUser === user.name) { $tr.find('td.userActions').empty(); } diff --git a/settings/templates/users/part.userlist.php b/settings/templates/users/part.userlist.php index 146e35d11ac..aaf20b6eaef 100644 --- a/settings/templates/users/part.userlist.php +++ b/settings/templates/users/part.userlist.php @@ -1,4 +1,4 @@ -<table id="userlist" class="hascontrols grid" data-groups="<?php p($_['allGroups']);?>"> +<table id="userlist" class="grid" data-groups="<?php p($_['allGroups']);?>"> <thead> <tr> <th id="headerAvatar" scope="col"></th> @@ -64,19 +64,22 @@ <td class="storageLocation"></td> <td class="userBackend"></td> <td class="lastLogin"></td> - <td class="userActions"><span></span> - <div class="popovermenu bubble menu"> - <ul class="userActionsMenu"> - <li> - <a href="#" class="menuitem action-togglestate permanent" data-action="togglestate"></a> - </li> - <li> - <a href="#" class="menuitem action-remove permanent" data-action="remove"> - <span class="icon icon-delete"></span> - <span><?php p($l->t('Delete')); ?></span> - </a> - </li> - </ul> + <td class="userActions"> + <div class="toggleUserActions"> + <a class="action"><span class="icon-more"></span></a> + <div class="popovermenu bubble menu"> + <ul class="userActionsMenu"> + <li> + <a href="#" class="menuitem action-togglestate permanent" data-action="togglestate"></a> + </li> + <li> + <a href="#" class="menuitem action-remove permanent" data-action="remove"> + <span class="icon icon-delete"></span> + <span><?php p($l->t('Delete')); ?></span> + </a> + </li> + </ul> + </div> </div> </td> </tr> |