mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Add SPAM button on mobile view (#1073)
This commit is contained in:
parent
78fa5b69fb
commit
eaf60c3c99
6 changed files with 23 additions and 15 deletions
|
|
@ -323,8 +323,7 @@ export const SaveSettingsStep = {
|
|||
export const Layout = {
|
||||
'NoPreview': 0,
|
||||
'SidePreview': 1,
|
||||
'BottomPreview': 2,
|
||||
'Mobile': 3
|
||||
'BottomPreview': 2
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@
|
|||
Globals.$html.toggleClass('rl-no-preview-pane', Enums.Layout.NoPreview === nValue);
|
||||
Globals.$html.toggleClass('rl-side-preview-pane', Enums.Layout.SidePreview === nValue);
|
||||
Globals.$html.toggleClass('rl-bottom-preview-pane', Enums.Layout.BottomPreview === nValue);
|
||||
Globals.$html.toggleClass('rl-mobile-layout', Enums.Layout.Mobile === nValue);
|
||||
|
||||
Events.pub('layout', [nValue]);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -616,7 +616,7 @@ html.ssm-state-desktop-large {
|
|||
}
|
||||
}
|
||||
|
||||
html.cssanimations.rl-anim .messageList .line-loading {
|
||||
html.cssanimations .messageList .line-loading {
|
||||
height: 5px !important;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ html.rl-bottom-preview-pane .messageView {
|
|||
}
|
||||
}
|
||||
|
||||
html.cssanimations.rl-anim .messageItem .line-loading {
|
||||
html.cssanimations .messageItem .line-loading {
|
||||
height: 5px !important;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -204,6 +204,16 @@
|
|||
return this.isSpamFolder() && !this.isSpamDisabled() && !this.isDraftFolder() && !this.isSentFolder();
|
||||
}, this);
|
||||
|
||||
this.mobileCheckedStateShow = ko.computed(function () {
|
||||
var checked = 0 < this.messageListChecked().length;
|
||||
return this.mobile ? checked : true;
|
||||
}, this);
|
||||
|
||||
this.mobileCheckedStateHide = ko.computed(function () {
|
||||
var checked = 0 < this.messageListChecked().length;
|
||||
return this.mobile ? !checked : true;
|
||||
}, this);
|
||||
|
||||
this.messageListFocused = ko.computed(function () {
|
||||
return Enums.Focused.MessageList === AppStore.focusedState();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue