mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 08:58:16 +03:00
webmail: make double click on mailbox expand/collapse, and make mailbox text unselectable (so the double click doesn't also select text)
This commit is contained in:
parent
941a2311f0
commit
9bc860e207
@ -49,7 +49,7 @@ table.search td { padding: .25em; }
|
|||||||
.keyword { background-color: gold; color: black; border: 1px solid #8c7600; padding: 0 .15em; border-radius: .15em; font-weight: normal; font-size: .9em; margin: 0 .15em; white-space: nowrap; }
|
.keyword { background-color: gold; color: black; border: 1px solid #8c7600; padding: 0 .15em; border-radius: .15em; font-weight: normal; font-size: .9em; margin: 0 .15em; white-space: nowrap; }
|
||||||
.keyword.keywordcollapsed { background-color: #ffeb7e; color: #333; }
|
.keyword.keywordcollapsed { background-color: #ffeb7e; color: #333; }
|
||||||
.mailbox { padding: .15em .25em; }
|
.mailbox { padding: .15em .25em; }
|
||||||
.mailboxitem { cursor: pointer; border-radius: .15em; }
|
.mailboxitem { cursor: pointer; border-radius: .15em; user-select: none; }
|
||||||
.mailboxitem.dropping { background: gold !important; }
|
.mailboxitem.dropping { background: gold !important; }
|
||||||
.mailboxitem:hover { background: #eee; }
|
.mailboxitem:hover { background: #eee; }
|
||||||
.mailboxitem.active { background: linear-gradient(135deg, #ffc7ab 0%, #ffdeab 100%); }
|
.mailboxitem.active { background: linear-gradient(135deg, #ffc7ab 0%, #ffdeab 100%); }
|
||||||
|
@ -4300,6 +4300,16 @@ const newMailboxView = (xmb, mailboxlistView, otherMailbox) => {
|
|||||||
else if (e.key === 'b') {
|
else if (e.key === 'b') {
|
||||||
cmdOpenActions();
|
cmdOpenActions();
|
||||||
}
|
}
|
||||||
|
}, async function dblclick() {
|
||||||
|
if (mailboxlistView.mailboxLeaf(mbv)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (settings.mailboxCollapsed[mbv.mailbox.ID]) {
|
||||||
|
cmdExpand();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cmdCollapse();
|
||||||
|
}
|
||||||
}, async function click() {
|
}, async function click() {
|
||||||
mbv.root.focus();
|
mbv.root.focus();
|
||||||
await withStatus('Opening mailbox', mbv.open(true));
|
await withStatus('Opening mailbox', mbv.open(true));
|
||||||
|
@ -4157,6 +4157,16 @@ const newMailboxView = (xmb: api.Mailbox, mailboxlistView: MailboxlistView, othe
|
|||||||
cmdOpenActions()
|
cmdOpenActions()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async function dblclick() {
|
||||||
|
if (mailboxlistView.mailboxLeaf(mbv)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (settings.mailboxCollapsed[mbv.mailbox.ID]) {
|
||||||
|
cmdExpand()
|
||||||
|
} else {
|
||||||
|
cmdCollapse()
|
||||||
|
}
|
||||||
|
},
|
||||||
async function click() {
|
async function click() {
|
||||||
mbv.root.focus()
|
mbv.root.focus()
|
||||||
await withStatus('Opening mailbox', mbv.open(true))
|
await withStatus('Opening mailbox', mbv.open(true))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user