From 260fa160584ab36c6c7cc4d5251c1aa494cf23eb Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 May 2021 18:55:34 +0530 Subject: [PATCH] half-fix for iphone drive grid/list toggle --- customize.dist/src/less2/include/drive.less | 5 +- www/common/drive-ui.js | 74 +++++++++++++-------- 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 9b9294e86..1b9e0b2e3 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -606,7 +606,7 @@ } } - .cp-app-drive-content-list { + div.cp-app-drive-content-list { .cp-app-drive-element-grid { display: none; } @@ -896,7 +896,8 @@ .cp-toolbar-bottom { .cp-toolbar-bottom-right { .fa-history { order: 50; } - .fa-list, .fa-th-large { order: 25; } + // .fa-list, .fa-th-large, + .cp-drive-viewmode-button { 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; } diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 2d128b468..a1084fd83 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -122,8 +122,8 @@ define([ var $trashEmptyIcon = $('', {"class": "fa fa-trash-o"}); //var $collapseIcon = $('', {"class": "fa fa-minus-square-o cp-app-drive-icon-expcol"}); var $expandIcon = $('', {"class": "fa fa-plus-square-o cp-app-drive-icon-expcol"}); - var $listIcon = $('