]> source.dussan.org Git - nextcloud-server.git/commit
Fix size of icons in menus inside apps when shown as images 11276/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 4 Sep 2018 20:21:22 +0000 (22:21 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 19 Sep 2018 06:46:53 +0000 (08:46 +0200)
commita9fa17eb7ebf81886b05ff1a14e1df67ad08bfef
treec2a9e4093253784adcb8ee42ba7d88f8f1a7279a
parentfb9379db3efa204378682bc77049f4153934dc81
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>
core/css/apps.scss