aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-04 22:21:22 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-04 22:21:22 +0200
commit0c758dbe5b014715dd5adde625f5d3b4da3528cd (patch)
tree8ebfd5a35589492f81f2dca986fede3aa0c109bb /apps/files/js/files.js
parent2e25d22d1693e077ca324804ee208de2eb866040 (diff)
downloadnextcloud-server-0c758dbe5b014715dd5adde625f5d3b4da3528cd.tar.gz
nextcloud-server-0c758dbe5b014715dd5adde625f5d3b4da3528cd.zip
Fix size of icons in menus inside apps when shown as images
Some popover menus, like the contacts menu, still show their icon using an img element. The main CSS rules assume that a "content-box" sizing is being used, and thus set the size and padding of the image to add up to the line height. However, ".app-*" descendants use a "border-box" sizing, so when a menu with an image was shown in an app the icon was not properly shown. Now both the width and height of the image is set to the item height in those cases, which causes the visible size of the icon to be the item height minus the padding (the same as when "content-box" sizing is used). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js/files.js')
0 files changed, 0 insertions, 0 deletions