From fb10d65a4f9c5a128f5528a80b295e2cb902ecf0 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 15 May 2020 13:56:33 +0200 Subject: [PATCH] Remove context button in the drive toolbar --- customize.dist/src/less2/include/drive.less | 3 +++ www/common/drive-ui.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index ccb156eb3..063cc71be 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -891,6 +891,9 @@ .fa-history { order: 50; } .fa-list, .fa-th-large { order: 25; } #cp-app-drive-toolbar-context-mobile, #cp-app-drive-toolbar-contextbuttons { order: 0; } + #cp-app-drive-toolbar-context-mobile { + .fa { margin: 0 !important; } + } #cp-app-drive-toolbar-contextbuttons { height: @variables_bar-height; display: flex; diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 8147b50fb..6f89041e1 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1378,6 +1378,7 @@ define([ return; } // Non mobile + /* var $container = $driveToolbar.find('#cp-app-drive-toolbar-contextbuttons'); if (!$container.length) { return; } $container.html(''); @@ -1404,6 +1405,7 @@ define([ $container.append($a); $a.click(function() { $(el).click(); }); }); + */ }; var scrollTo = function ($element) {