Minor fixes + add label to all buttons #1831

This commit is contained in:
DianaXWiki 2025-05-14 13:24:05 +03:00 committed by yflory
parent f7e690e700
commit d257dbab3f
5 changed files with 6 additions and 12 deletions

View File

@ -1343,7 +1343,7 @@ define([
UIElements.createMarkdownToolbarToggle = function(toolbarElement, editor) {
var $button = $('<button>', {
'class': 'btn btn-toolbar-alt cp-markdown-toolbar-toggle-button',
'class': 'btn cp-markdown-toolbar-toggle-button',
'aria-label': Messages.toolbar_tools,
'data-notippy':1,
'title': Messages.toolbar_tools,
@ -1353,6 +1353,10 @@ define([
$('<i>', {
'class': 'fa fa-wrench',
'aria-hidden': true
}),
$('<span>', {
'class': 'cp-toolbar-label',
'text': Messages.toolbar_tools
})
);

View File

@ -443,9 +443,6 @@
border-radius: @variables_radius;
display: inline-flex;
}
.cp-markdown-toolbar-toggle-button i.fa {
margin: 0 !important;
}
}
}
@ -840,6 +837,7 @@
border: 1px solid @cp_forms-border;
border-radius: @variables_radius;
margin-top: 0.5rem;
padding: 1px;
.CodeMirror {
cursor: default;
flex: 1;

View File

@ -1127,7 +1127,6 @@ define([
});
var toggleRow = h('div.cp-markdown-toggle-row');
$(block).prepend(markdownTb.toolbar);
UIElements.updateToolbarVisibility(toggleRow, markdownTb.toolbar, editor);
$(window).on('resize', function() {
UIElements.updateToolbarVisibility(toggleRow, markdownTb.toolbar, editor);
});

View File

@ -142,11 +142,6 @@
border-radius: @variables_radius;
display: inline-flex;
}
.cp-markdown-toolbar-toggle-button i.fa {
margin: 0 !important;
}
#cp-kanban-edit-body {
border: 1px solid @cp_forms-border;
border-radius: @variables_radius;

View File

@ -544,8 +544,6 @@ define([
$(window).on('resize', function() {
UIElements.updateToolbarVisibility(toggleRow, markdownTb.toolbar, editor);
});
$(toggleButton).removeClass('btn-toolbar-alt');
$(toggleButton).append('<span class="toggle-label">Show tools</span>');
$(code).prepend(markdownTb.toolbar);
$(code).prepend(toggleRow);
if(!Util.isSmallScreen()) {