mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Minor fixes + add label to all buttons #1831
This commit is contained in:
parent
f7e690e700
commit
d257dbab3f
@ -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
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
});
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user