mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
Add a note to print page if messages are missing, fix styles in dark themes #958
This commit is contained in:
parent
17261e9083
commit
f1729ca9b6
2 changed files with 37 additions and 2 deletions
|
@ -1,9 +1,18 @@
|
|||
body {
|
||||
overflow: auto !important;
|
||||
-webkit-filter: none !important;
|
||||
}
|
||||
#message-list {
|
||||
background: transparent;
|
||||
|
||||
h1,
|
||||
.message-list,
|
||||
.message-list * {
|
||||
background: transparent !important;
|
||||
}
|
||||
h1,
|
||||
.message-header * {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
#print-button {
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
|
@ -73,6 +82,9 @@ body {
|
|||
.footer-reply-area-wrap {
|
||||
display: none;
|
||||
}
|
||||
.message-item-white-wrap {
|
||||
box-shadow: 0 0 0.5px rgba(0, 0, 0, 0.28), 0 1px 1.5px rgba(0, 0, 0, 0.08) !important;
|
||||
}
|
||||
|
||||
@media only print {
|
||||
body,
|
||||
|
@ -104,4 +116,19 @@ body {
|
|||
.message-item-area > header {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
.print-note {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.print-note {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px 10px;
|
||||
background: antiquewhite;
|
||||
color: #444;
|
||||
text-align: center;
|
||||
font-size: 0.9em;
|
||||
border: 1px solid darkgoldenrod;
|
||||
border-top: 0;
|
||||
}
|
||||
|
|
|
@ -42,4 +42,12 @@
|
|||
|
||||
document.getElementById('print-button').addEventListener('click', continueAndPrint);
|
||||
window.continueAndPrint = continueAndPrint;
|
||||
|
||||
if (document.querySelector('.message-item-wrap.collapsed')) {
|
||||
const note = document.createElement('div');
|
||||
note.classList.add('print-note');
|
||||
note.innerText =
|
||||
'One or more messages in this thread were collapsed and will not be printed. To print these messages, expand them in the main window.';
|
||||
document.body.insertBefore(note, document.body.children[0]);
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue