messagelist search without float

and remove some usePreviewPane
This commit is contained in:
djmaze 2021-02-15 20:05:51 +01:00
parent b1c7bd2c50
commit 0d6335ed2c
9 changed files with 29 additions and 40 deletions

View file

@ -363,7 +363,7 @@ export class Selector {
focused.checked(!focused.checked());
}
if (' ' !== sEventKey && (this.autoSelect() || !!bForceSelect) && !this.isListChecked()) {
if (' ' !== sEventKey && (this.autoSelect() || bForceSelect) && !this.isListChecked()) {
this.selectedItem(result);
}

View file

@ -32,7 +32,6 @@ export class GeneralUserSettings {
this.editorDefaultType = SettingsStore.editorDefaultType;
this.layout = SettingsStore.layout;
this.usePreviewPane = SettingsStore.usePreviewPane;
this.enableSoundNotification = NotificationStore.enableSoundNotification;

View file

@ -36,10 +36,6 @@ html.rl-started-delay {
transition: left 0.3s ease-out, right 0.3s ease-out;
}
#rl-sub-left, #rl-sub-left .messageList .inputSearch {
transition: width 0.3s ease-out;
}
#rl-sub-right {
transition: left 0.3s ease-out;
}

View file

@ -251,10 +251,6 @@ html:not(.rl-left-panel-disabled) #rl-left.resizable > .resizer,
#rl-sub-left {
width: 310px;
.messageList .inputSearch {
width: 200px;
}
}
#rl-sub-right {
@ -339,10 +335,6 @@ html.rl-no-preview-pane {
#rl-sub-left {
right: @rlBottomMargin !important;
width: inherit;
.messageList .inputSearch {
width: 300px !important;
}
}
#rl-sub-right {
@ -366,20 +358,12 @@ html.rl-bottom-preview-pane:not(.rl-mobile) {
box-shadow: none;
}
.messageList .inputSearch {
width: 300px !important;
}
}
#rl-sub-right {
left: 0 !important;
.messageView .top-toolbar {
display: none;
}
.b-message-view-wrapper {
top: 356px;
left: 0;

View file

@ -47,10 +47,6 @@ html.rl-no-preview-pane {
}
}
.inputSearch {
width: 258px;
}
.btn.buttonMoreSearch {
padding-left: 8px;
padding-right: 8px;
@ -91,6 +87,22 @@ html.rl-no-preview-pane {
cursor: pointer;
line-height: 30px;
}
.input-append {
margin-left: 14px;
text-align: right;
width: calc(100% - 30px);
.close-input-wrp {
width: 90%;
min-width: 200px;
max-width: 300px;
}
.inputSearch {
width: calc(100% - 14px);
}
}
}
.line-loading {
@ -462,13 +474,6 @@ html .messageList .line-loading {
top: 0;
}
html.rl-mobile {
#rl-sub-left .messageList .inputSearch {
width: 160px !important;
}
}
.messageListItem {
display: flex;

View file

@ -605,6 +605,12 @@ html.rl-no-preview-pane .messageView {
}
}
html:not(.rl-mobile):not(.rl-no-preview-pane) .messageView {
.top-toolbar {
display: none;
}
}
html.rl-bottom-preview-pane:not(.rl-mobile) .messageView {
.b-content {
bottom: @rlBottomMargin;

View file

@ -96,7 +96,6 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
this.useThreads = SettingsStore.useThreads;
this.replySameFolder = SettingsStore.replySameFolder;
this.layout = SettingsStore.layout;
this.usePreviewPane = SettingsStore.usePreviewPane;
this.isMessageSelected = MessageStore.isMessageSelected;
this.messageActiveDom = MessageStore.messageActiveDom;
this.messageError = MessageStore.messageError;
@ -284,14 +283,14 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
@command((self) => !self.messageListAndMessageViewLoading())
goUpCommand() {
dispatchEvent(new CustomEvent('mailbox.message-list.selector.go-up',
{detail:SettingsStore.usePreviewPane() || !!this.message()}
{detail:SettingsStore.usePreviewPane() || !!this.message()} // bForceSelect
));
}
@command((self) => !self.messageListAndMessageViewLoading())
goDownCommand() {
dispatchEvent(new CustomEvent('mailbox.message-list.selector.go-down',
{detail:SettingsStore.usePreviewPane() || !!this.message()}
{detail:SettingsStore.usePreviewPane() || !!this.message()} // bForceSelect
));
}