Cleanup dropmenu css

This commit is contained in:
djmaze 2021-11-05 11:14:30 +01:00
parent 263e595ba2
commit b2635eb5c6
9 changed files with 149 additions and 189 deletions

View file

@ -78,30 +78,30 @@ html:not(.rl-left-panel-disabled) #rl-left.resizable {
width: 5px;
}
.g-ui-menu {
.dropdown-menu {
max-height: 60vh;
max-width: 90vw;
overflow: auto;
.e-link {
a {
text-decoration: none;
cursor: pointer;
color: var(--dropdown-menu-color, #333);
background-color: var(--dropdown-menu-bg-color, #fff);
}
.e-item.selected > .e-link {
li.selected > a {
background-color: var(--dropdown-menu-selected-bg-color, #eee);
}
.e-item:not(.disabled) > .e-link:focus,
.e-item:not(.disabled) > .e-link:hover {
li:not(.disabled) > a:focus,
li:not(.disabled) > a:hover {
background-color: var(--dropdown-menu-hover-bg-color, #444);
background-image: none;
color: var(--dropdown-menu-hover-color, #eee);
}
.e-item.disabled > .e-link {
li.disabled > a {
cursor: not-allowed;
opacity: 0.5;
}

View file

@ -459,31 +459,6 @@
padding-right: 10px;
}
}
.thread-list {
.e-link {
padding: 4px 8px 6px 10px;
}
&.hide-more .thread-list-message.more-that {
display: none;
}
.thread-date {
font-size: 13px;
color: #999;
}
.more-threads {
text-align: center;
padding: 8px;
background-color: #F5F5F5;
color: #555;
text-decoration: underline;
border-top: 1px dashed #555;
}
}
}
html.rl-mobile .messageView,

View file

@ -84,7 +84,7 @@
display: inline-block;
}
.g-ui-menu .e-link.account-item {
.dropdown-menu a.account-item {
padding-right: 5px;
}
}

View file

@ -390,20 +390,6 @@ export class MailMessageView extends AbstractViewRight {
[message]
);
}
el = eqs(event, '.thread-list .flagParent');
if (el) {
const message = ko.dataFor(el);
message && message.folder && message.uid && rl.app.messageListAction(
message.folder,
message.isFlagged() ? MessageSetAction.UnsetFlag : MessageSetAction.SetFlag,
[message]
);
this.threadsDropdownTrigger(true);
return false;
}
});
AppUserStore.focusedState.subscribe((value) => {