mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Replace "Ctrl+P" shortcut with proper @media print CSS
This commit is contained in:
parent
1f600dff0d
commit
81a5466f50
40 changed files with 36 additions and 44 deletions
|
|
@ -56,3 +56,39 @@
|
|||
@import "User/Animations.less";
|
||||
|
||||
@import "_End.less";
|
||||
|
||||
@media print {
|
||||
body, html {
|
||||
height: auto;
|
||||
overflow: auto;
|
||||
}
|
||||
body, #rl-right {
|
||||
position: initial;
|
||||
}
|
||||
#rl-left {
|
||||
display: none;
|
||||
}
|
||||
.message-selected {
|
||||
.close,
|
||||
.infoParent,
|
||||
.messageView .controls-handle,
|
||||
#tags-dropdown-id,
|
||||
.message-fixed-button-toolbar,
|
||||
#V-MailMessageList,
|
||||
#V-SystemDropDown,
|
||||
.bodySubHeader {
|
||||
display: none;
|
||||
}
|
||||
#V-MailMessageView {
|
||||
left: 0;
|
||||
position: initial;
|
||||
}
|
||||
.messageView,
|
||||
.messageView .b-content,
|
||||
.messageView .b-message,
|
||||
#messageItem,
|
||||
#messageItem .b-text-part {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,12 +408,6 @@ export class MailMessageView extends AbstractViewRight {
|
|||
return false;
|
||||
});
|
||||
|
||||
// print
|
||||
addShortcut('p,printscreen', 'meta', [Scope.MessageView, Scope.MessageList], () => {
|
||||
currentMessage()?.printMessage();
|
||||
return false;
|
||||
});
|
||||
|
||||
// delete
|
||||
addShortcut('delete', '', Scope.MessageView, () => {
|
||||
this.deleteCommand();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue