From fd575b32dc16aea438fb9453d359b60e3b9fb3fb Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:40:49 +0200 Subject: [PATCH 1/7] update drive tree style --- customize.dist/src/less2/include/drive.less | 12 +++++++----- customize.dist/src/less2/include/leftside-menu.less | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 9a79f8c51..3b3811bcb 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -342,10 +342,9 @@ .cp-app-drive-tree-docs { .droppable-tree-element(); margin-top: 15px; - //padding: 0 0 0 20px; - padding: 0; + padding: 5px; background-color: @cp_sidebar-left-item-bg; - border-radius: @variables_radius; + border-radius: @variables_radius_L; cursor: auto; &li, li { padding: 0; @@ -366,7 +365,7 @@ display: flex; align-items: center; cursor: pointer; - margin: 0 0 2px 0; + margin: 0; .cp-app-drive-element { flex: 1; min-width: 0; @@ -440,8 +439,11 @@ } } } + svg { + height: 1.5em; + width: 1.5em; + } .cp-app-drive-tree-root > .cp-app-drive-element-row { - margin-left: 0px; .cp-icon-hidden ~ svg { margin-left: -10px; } diff --git a/customize.dist/src/less2/include/leftside-menu.less b/customize.dist/src/less2/include/leftside-menu.less index c3a11cdfd..43d067d67 100644 --- a/customize.dist/src/less2/include/leftside-menu.less +++ b/customize.dist/src/less2/include/leftside-menu.less @@ -15,7 +15,6 @@ cursor: pointer; height: @variables_bar-height; border-radius: @variables_radius; - background-color: @cp_sidebar-left-item-bg; &:hover { background: @cryptpad_text_col_inv; } From 7937e2cd7dca0502fc44606b872a0d9c4f43c569 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:56:01 +0200 Subject: [PATCH 2/7] update border-radius --- customize.dist/src/less2/include/drive.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 3b3811bcb..8422c6247 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -385,7 +385,7 @@ margin: 0; margin-top: 10px; background-color: @cp_sidebar-left-item-bg; - border-radius: @variables_radius; + border-radius: @variables_radius_L; box-shadow: @cryptpad_ui_shadow; .cp-app-drive-tree-root { .droppable-tree-element(); From e1ffd18766403809acb492ec8c6d669044562605 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:03:01 +0200 Subject: [PATCH 3/7] remove custom svg size --- customize.dist/src/less2/include/drive.less | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 8422c6247..3ebf18045 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -414,7 +414,7 @@ .cp-app-drive-icon-expcol { font-size: 14px; position: absolute; - left: -17px; + left: -20px; overflow: hidden; padding: 0; margin: 0; @@ -439,10 +439,6 @@ } } } - svg { - height: 1.5em; - width: 1.5em; - } .cp-app-drive-tree-root > .cp-app-drive-element-row { .cp-icon-hidden ~ svg { margin-left: -10px; @@ -477,7 +473,7 @@ // Expand/collapse lines .cp-app-drive-tree-docs ul { - margin: 0px 0px 0px 10px; + margin: 0px 0px 0px 12px; list-style: none; padding-left: 5px; li { From 9c20e10a1ef127ef33c171fef044df3057d6e5d2 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:13:18 +0200 Subject: [PATCH 4/7] fix cursor --- customize.dist/src/less2/include/drive.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 3ebf18045..c278f1dcd 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -419,14 +419,14 @@ padding: 0; margin: 0; z-index: 10; - cursor: default; + cursor: pointer; display: inline-flex; svg { margin: 0; } &:focus-visible { outline: @variables_focus_style; - border-radius: @variables_radius_S; + border-radius: @variables_radius; } } .cp-app-drive-tree-docs { From 9054254af37254dfb8afecaf1f35a69cad9c8b97 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:13:53 +0200 Subject: [PATCH 5/7] fix sidebar elements style --- customize.dist/src/less2/include/leftside-menu.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customize.dist/src/less2/include/leftside-menu.less b/customize.dist/src/less2/include/leftside-menu.less index 43d067d67..6edd1b1ed 100644 --- a/customize.dist/src/less2/include/leftside-menu.less +++ b/customize.dist/src/less2/include/leftside-menu.less @@ -14,7 +14,7 @@ margin: 10px 0; cursor: pointer; height: @variables_bar-height; - border-radius: @variables_radius; + border-radius: @variables_radius_L; &:hover { background: @cryptpad_text_col_inv; } From 64d584dbae573fd480562aa288c707af414cc7a2 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:19:05 +0200 Subject: [PATCH 6/7] Revert "Remove" This reverts commit 4f78b23c3eb3ec16b2573ec64ccd3a439d72fac3. --- www/common/drive-ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 80be5a06a..92c5b578b 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -4568,6 +4568,9 @@ define([ var $row = $(this); var elPath = $row.data('path'); if (!elPath || elPath.length === 0) { return; } + var pathToCheck = elPath[0] === 'root' ? elPath : [ROOT].concat(elPath); + var folderColor = getFolderColor(pathToCheck); + $row.find('.cp-app-drive-icon-folder').css("color", folderColor); var checkRoot = manager.find([ROOT]); var sfId = null; From aed1a707731182904de55e90b2b64dbe526dab99 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:19:55 +0200 Subject: [PATCH 7/7] remove padding --- customize.dist/src/less2/include/drive.less | 1 - 1 file changed, 1 deletion(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index c278f1dcd..8f4157547 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -475,7 +475,6 @@ .cp-app-drive-tree-docs ul { margin: 0px 0px 0px 12px; list-style: none; - padding-left: 5px; li { position: relative; &.cp-app-drive-tree-root {