don't print control buttons

This commit is contained in:
zadam 2020-03-07 22:18:12 +01:00
parent 3d3ad3b99b
commit 78a50be663
3 changed files with 10 additions and 2 deletions

View File

@ -164,6 +164,7 @@ async function printActiveNote() {
"libraries/ckeditor/ckeditor-content.css",
"libraries/ckeditor/ckeditor-content.css",
"libraries/bootstrap/css/bootstrap.min.css",
"stylesheets/print.css",
"stylesheets/themes.css",
"stylesheets/detail.css"
],

View File

@ -148,8 +148,8 @@ class NoteDetailBook {
const label = `${childCount} child${childCount > 1 ? 'ren' : ''}`;
$card.append($('<div class="note-book-children">')
.append($(`<a class="note-book-open-children-button" href="javascript:">+ Show ${label}</a>`))
.append($(`<a class="note-book-hide-children-button" href="javascript:">- Hide ${label}</a>`).hide())
.append($(`<a class="note-book-open-children-button no-print" href="javascript:">+ Show ${label}</a>`))
.append($(`<a class="note-book-hide-children-button no-print" href="javascript:">- Hide ${label}</a>`).hide())
.append($('<div class="note-book-children-content">'))
);
}

View File

@ -0,0 +1,7 @@
@media print
{
.no-print, .no-print *
{
display: none !important;
}
}