diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 3f2e971b46bc7..ce9e80bd61d1d 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -690,7 +690,8 @@ a.action > img { .summary { opacity: .3; /* add whitespace to bottom of files list to correctly show dropdowns */ - height: 250px; + $action-menu-items-count: 7; // list view has currently max 7 items in its action menu + height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below } #filestable .filesummary { width: 100%; @@ -1110,6 +1111,8 @@ table.dragshadow td.size { .summary:not(.hidden) { display: inline-block; margin: 0 auto; + $action-menu-items-count: 9; // grid view has currently max 9 items in its action menu + height: 44px * ($action-menu-items-count + 0.5); // 0.5 is added to show some whitespace below td { padding-top: 50px;