From 1cc05af7a68f00b2275eaf4373d9140c538ba012 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 31 Oct 2018 11:20:02 +0100 Subject: Align file menu below '+' button, fix #5595 Signed-off-by: Jan-Christoph Borchardt --- apps/files/css/files.scss | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'apps/files/css/files.scss') diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 4e0bc9c0160..3650991a63c 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -8,7 +8,12 @@ } /* FILE MENU */ -.actions { padding:5px; height:32px; display: inline-block; float: left; } +.actions { + padding: 5px; + height: 100%; + display: inline-block; + float: left; +} .actions input, .actions button, .actions .button { margin:0; float:left; } .actions .button a { color: #555; } .actions .button a:hover, @@ -658,8 +663,14 @@ table.dragshadow td.size { top: 100%; margin-top: 4px; min-width: 100px; - margin-left: 7px; + margin-left: 22px; /* Align left edge below center of + button … */ + transform: translateX(-50%); /* … then center it below button */ z-index: 1001; + + /* Center triangle */ + &::after { + left: calc(50% - 8px) !important; + } } #filestable .filename .action .icon, -- cgit v1.2.3