Improved message header style

This commit is contained in:
the-djmaze 2022-10-26 16:39:01 +02:00
parent ffcc86805a
commit 256023dc58
3 changed files with 7 additions and 10 deletions

View file

@ -288,11 +288,11 @@ html.rl-no-preview-pane {
padding: 50px 0; padding: 50px 0;
} }
.showImages, .readReceipt, .pgpSigned, .pgpEncrypted { .bodySubHeader > * {
background-color: #eee;
border-bottom: 1px solid #ddd;
cursor: pointer; cursor: pointer;
padding: 10px 15px; padding: 10px 15px;
border-bottom: 1px solid #ddd;
background-color: #eee;
} }
.pgpInfo { .pgpInfo {
@ -346,7 +346,8 @@ html.rl-no-preview-pane {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.attachmentsControls > * { .attachmentsControls > * {
margin-right: 0.5em margin-right: 0.5em;
white-space: nowrap;
} }
.sm-bq-switcher > summary { .sm-bq-switcher > summary {

View file

@ -255,6 +255,7 @@ class NextcloudCalendarsPopupView extends rl.pluginPopupView {
// && getDavElementsByTagName(getDavElementByTagName(e, 'current-user-privilege-set'), 'write').length) { // && getDavElementsByTagName(getDavElementByTagName(e, 'current-user-privilege-set'), 'write').length) {
const li = document.createElement('li'), const li = document.createElement('li'),
btn = document.createElement('button'); btn = document.createElement('button');
li.dataset.icon = '📅';
li.textContent = getDavElementByTagName(e, 'displayname').textContent; li.textContent = getDavElementByTagName(e, 'displayname').textContent;
btn.href = getDavElementByTagName(e, 'href').textContent btn.href = getDavElementByTagName(e, 'href').textContent
.replace(pathRegex, '').replace(/\/$/, ''); .replace(pathRegex, '').replace(/\/$/, '');

View file

@ -112,12 +112,7 @@
} }
.messageView .messageItemHeader, .messageView .messageItemHeader,
.messageView #messageItem .pgpEncrypted, .messageView #messageItem .bodySubHeader > * {
.messageView #messageItem .pgpSigned,
.messageView #messageItem .readReceipt,
.messageView #messageItem .showImages,
.messageView #messageItem .attachmentsPlace,
.messageView #messageItem .attachmentsControls {
background-color: #222; background-color: #222;
border-bottom-color: #444; border-bottom-color: #444;
} }