From 286dc074ebdac8b414a6aa0eac009a52ce2ed30d Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:08:29 +0300 Subject: [PATCH] edit icons on drive --- customize.dist/pages/index.js | 2 +- customize.dist/src/less2/include/drive.less | 2 +- customize.dist/src/less2/include/help.less | 4 ++-- www/common/common-ui-elements.js | 4 +++- www/common/drive-ui.js | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index 100074f35..f3877d7ef 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -213,7 +213,7 @@ define([ ]), h('div.cp-app-drive', [ h('a.cp-drive-btn', {'href': '/drive/'}, [ - Icons.get('hdd'), + Icons.get('drive'), Msg.team_cat_drive ]), extraButtons diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 1831ee802..aa9d165b3 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -585,7 +585,7 @@ color: @cryptpad_color_link; text-decoration: underline; } - span { + svg { cursor: pointer; float: right; margin-top: 0.5em; diff --git a/customize.dist/src/less2/include/help.less b/customize.dist/src/less2/include/help.less index dc0c6fc26..515cea82a 100644 --- a/customize.dist/src/less2/include/help.less +++ b/customize.dist/src/less2/include/help.less @@ -12,7 +12,8 @@ }; & { .cp-help-container { - + display:inline-flex; + align-items: center; position: relative; background-color: @cp_help-bg; max-height: 50%; @@ -25,7 +26,6 @@ border: none; position: absolute; color: @cryptpad_text_col; - top: 5px; right: 5px; &:focus-visible { outline: @variables_focus_style; diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 3f1662564..7352439e9 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1413,7 +1413,9 @@ define([ common.fixLinks(text); - var closeButton = h('button.cp-help-close.fa.fa-times', { + var closeButton = h('button.cp-help-close',[ + Icons.get('close') + ], { title: Messages.help_close_button }); var $toolbarButton = common.createButton('', true, { diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 952c6322f..ae1b6a06c 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -137,7 +137,7 @@ define([ //var $gridIcon = $('