From 4f945fffbda71d3dc5f6957cb3ece9fa8616fc11 Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Wed, 28 May 2025 15:25:42 +0300 Subject: [PATCH] Implement review fixes (all except profile) + fix issue with markdown toolbar not appearing --- .../src/less2/include/markdown.less | 29 +++++++++++++++ www/common/common-ui-elements.js | 14 +++++-- www/form/app-form.less | 37 ++++++++++++------- www/form/inner.js | 21 +++++++++-- www/kanban/app-kanban.less | 28 +++++++++----- www/profile/app-profile.less | 3 ++ 6 files changed, 102 insertions(+), 30 deletions(-) diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index 16e6654ed..42e5ea0d8 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -289,3 +289,32 @@ } } +//reusable styling for the markdown toggle button across all apps + .markdown-toolbar-button-style() { + padding: 3px 5px; + height: fit-content; + margin: 0; + line-height: 1; + border-radius: @variables_radius; + display: inline-flex; + background-color: @cp_toolbar-bottom-bg; + color: @cp_toolbar-bottom-fg; + + &:hover { + background-color: fade(@cryptpad_text_col, 20%); + border-color: @cryptpad_text_col; + color: @cryptpad_text_col; + } + + &.cp-toolbar-button-active { + background-color: @cp_toolbar-bg; + border-color: @cp_toolbar-fg; + color: @cp_toolbar-fg; + + &:hover { + background-color: fade(@cryptpad_text_col, 20%); + } + } +} + + diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 938746da9..5d5a5d940 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1343,7 +1343,7 @@ define([ UIElements.createMarkdownToolbarToggle = function(toolbarElement, editor) { var $button = $('