Add OpenPGP mail encryption: decrypt, verify, encrypt, sign and contact keyring, v0.3.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -74,5 +74,6 @@
|
||||
<script src="shortcuts.js"></script>
|
||||
<script src="attachments.js"></script>
|
||||
<script src="pgp-ui.js"></script>
|
||||
<script src="pgp-mail-ui.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+14
-1
@@ -584,13 +584,26 @@ if (window.daybreakMail) {
|
||||
sendButton.disabled = true;
|
||||
sendButton.textContent = 'Sending…';
|
||||
try {
|
||||
const pgp = window.pgpPrepareSend ? await window.pgpPrepareSend(recipient, $('#compose-cc').value) : null;
|
||||
if (pgp === false) {
|
||||
sendButton.disabled = false;
|
||||
sendButton.textContent = 'Send ↗';
|
||||
return;
|
||||
}
|
||||
const result = await window.daybreakMail.send({
|
||||
to: recipient,
|
||||
cc: $('#compose-cc').value,
|
||||
subject: $('#compose-subject').value.trim(),
|
||||
text: $('#compose-body').value,
|
||||
displayName: connectedMailAccount.displayName || profileSettings.name
|
||||
displayName: connectedMailAccount.displayName || profileSettings.name,
|
||||
...(pgp ? { pgp } : {})
|
||||
});
|
||||
if (result.failed) {
|
||||
sendButton.disabled = false;
|
||||
sendButton.textContent = 'Send ↗';
|
||||
toast(result.message || 'Message could not be encrypted');
|
||||
return;
|
||||
}
|
||||
if (result.queued) {
|
||||
const draftId = $('#modal-root .compose-modal')?.dataset.draftId;
|
||||
if (draftId) await window.daybreakMail.deleteDraft(draftId);
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
// Reading and sending OpenPGP mail (desktop). Inert where there is no key store.
|
||||
const pgpApi = () => window.daybreakMail?.pgp;
|
||||
|
||||
function pgpAskPassphrase(title, detail) {
|
||||
return new Promise(resolve => {
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'modal-overlay pgp-prompt';
|
||||
overlay.innerHTML = `<form class="compose-modal pgp-prompt-box" autocomplete="off"><div class="modal-head"><span></span></div><div class="compose-fields"><p class="account-note"></p><label class="compose-line"><span>Passphrase</span><input type="password" id="pgp-prompt-input" autocomplete="current-password"></label></div><div class="compose-footer"><button type="button" class="discard" data-cancel>Cancel</button><button type="submit" class="send-button">Unlock</button></div></form>`;
|
||||
overlay.querySelector('.modal-head span').textContent = title;
|
||||
overlay.querySelector('.account-note').textContent = detail;
|
||||
const finish = value => { overlay.remove(); resolve(value); };
|
||||
overlay.querySelector('form').onsubmit = event => {
|
||||
event.preventDefault();
|
||||
const value = overlay.querySelector('input').value;
|
||||
if (value) finish(value);
|
||||
};
|
||||
overlay.querySelector('[data-cancel]').onclick = () => finish(null);
|
||||
overlay.addEventListener('keydown', event => { if (event.key === 'Escape') { event.stopPropagation(); finish(null); } });
|
||||
document.body.append(overlay);
|
||||
overlay.querySelector('input').focus();
|
||||
});
|
||||
}
|
||||
|
||||
function pgpFormatFingerprint(value) {
|
||||
return String(value || '').match(/.{1,4}/g)?.join(' ') || '';
|
||||
}
|
||||
|
||||
function pgpSignatureHtml(signatures, encrypted) {
|
||||
const items = Array.isArray(signatures) ? signatures : [];
|
||||
const lock = encrypted ? '🔒 Encrypted. ' : '';
|
||||
if (!items.length) {
|
||||
return encrypted ? `<section class="pgp-status pgp-warn" role="status"><strong>${lock}Not signed</strong><span>The sender is not authenticated: anyone with your public key could have written this.</span></section>` : '';
|
||||
}
|
||||
return items.map(signature => {
|
||||
const trust = signature.trust === 'verified' ? 'verified key' : signature.trust === 'trusted' ? 'trusted key' : 'key not verified yet';
|
||||
const notes = [];
|
||||
if (signature.keyChanged) notes.push('The sender previously used a different key. Confirm the change with them before trusting this message.');
|
||||
if (signature.mismatch) notes.push('The signing key does not belong to the sender address.');
|
||||
if (signature.status === 'valid') {
|
||||
const level = signature.keyChanged || signature.mismatch ? 'bad' : signature.trust === 'unknown' ? 'warn' : 'ok';
|
||||
return `<section class="pgp-status pgp-${level}" role="status"><strong>${lock}Valid signature from ${esc(signature.email || 'a known key')}</strong><span>${esc(trust)} · ${esc(pgpFormatFingerprint(signature.fingerprint))}</span>${notes.map(note => `<small>${esc(note)}</small>`).join('')}</section>`;
|
||||
}
|
||||
if (signature.status === 'unknown-key') {
|
||||
return `<section class="pgp-status pgp-warn" role="status"><strong>${lock}Signed with an unknown key</strong><span>Key ID ${esc(signature.keyId)} is not in your contacts, so the signature cannot be checked.</span>${notes.map(note => `<small>${esc(note)}</small>`).join('')}</section>`;
|
||||
}
|
||||
return `<section class="pgp-status pgp-bad" role="alert"><strong>${lock}Invalid signature</strong><span>This message may have been altered or forged. Do not trust it.</span></section>`;
|
||||
}).join('');
|
||||
}
|
||||
|
||||
async function pgpAddAttachedKey(key) {
|
||||
const emails = key.emails.join(', ') || 'unknown address';
|
||||
if (!confirm(`Add this public key for ${emails}?\nFingerprint: ${pgpFormatFingerprint(key.fingerprint)}\n\nCompare the fingerprint with the owner before relying on it.`)) return;
|
||||
try {
|
||||
const result = await pgpApi().addContact({ armoredKey: key.armoredKey, source: 'message' });
|
||||
toast(result.keyChangedFrom?.length ? 'Key added. Warning: you already had a different key for this address.' : 'Public key added to your contacts');
|
||||
} catch (error) {
|
||||
toast(error.message || 'Could not add the key');
|
||||
}
|
||||
}
|
||||
|
||||
function pgpRenderReaderState(message) {
|
||||
const reader = $('#reader-pane');
|
||||
const header = reader.querySelector('.reader-header');
|
||||
if (!header) return;
|
||||
reader.querySelectorAll('.pgp-status, .pgp-banner').forEach(node => node.remove());
|
||||
let html = '';
|
||||
if (message.encrypted && !message.pgpDecrypted) {
|
||||
html = `<section class="pgp-banner" role="status"><strong>🔒 This message is encrypted</strong><span id="pgp-banner-text">Unlock it with your key passphrase to read it.</span><button type="button" class="send-button" id="pgp-unlock">Unlock</button></section>`;
|
||||
} else if (message.encrypted) {
|
||||
html = pgpSignatureHtml(message.pgpResult?.signatures, true);
|
||||
} else if (message.pgpSignatures) {
|
||||
html = pgpSignatureHtml(message.pgpSignatures, false);
|
||||
}
|
||||
const keys = message.pgpResult?.attachedKeys || [];
|
||||
header.insertAdjacentHTML('afterend', html + keys.map((key, index) => `<section class="pgp-status pgp-warn"><strong>Public key attached</strong><span>${esc(key.emails.join(', ') || 'unknown address')} · ${esc(pgpFormatFingerprint(key.fingerprint))}</span><button type="button" class="discard" data-pgp-key="${index}">Add to contacts…</button></section>`).join(''));
|
||||
reader.querySelectorAll('[data-pgp-key]').forEach(button => {
|
||||
button.onclick = () => pgpAddAttachedKey(keys[Number(button.dataset.pgpKey)]);
|
||||
});
|
||||
const unlock = $('#pgp-unlock');
|
||||
if (unlock) unlock.onclick = () => pgpUnlockMessage(message, true);
|
||||
}
|
||||
|
||||
async function pgpUnlockMessage(message, interactive) {
|
||||
let passphrase = null;
|
||||
for (let attempt = 0; attempt < 3; attempt += 1) {
|
||||
let result;
|
||||
try {
|
||||
result = await pgpApi().decryptMessage({ folder: message.sourceFolder || 'Inbox', uid: message.uid, passphrase });
|
||||
} catch (error) {
|
||||
toast(error.message || 'Could not open this message');
|
||||
return;
|
||||
}
|
||||
if (result.ok) {
|
||||
Object.assign(message, {
|
||||
body: result.body, links: result.links, attachments: result.attachments, attachment: result.attachment, size: result.size,
|
||||
snippet: 'Encrypted message', pgpDecrypted: true, pgpResult: { signatures: result.signatures, attachedKeys: result.attachedKeys }
|
||||
});
|
||||
if (activeMessage === message.id) openMessage(message.id);
|
||||
return;
|
||||
}
|
||||
if (result.code === 'PASSPHRASE_REQUIRED' || result.code === 'BAD_PASSPHRASE') {
|
||||
if (!interactive) { pgpRenderReaderState(message); return; }
|
||||
passphrase = await pgpAskPassphrase('Unlock encrypted message', result.code === 'BAD_PASSPHRASE' ? 'That passphrase was incorrect. Try again.' : `Enter the passphrase for ${result.email || 'your key'}.`);
|
||||
if (passphrase === null) return;
|
||||
continue;
|
||||
}
|
||||
const text = $('#pgp-banner-text');
|
||||
if (text) text.textContent = result.message;
|
||||
else toast(result.message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof openMessage === 'function') {
|
||||
const baseOpenMessage = openMessage;
|
||||
openMessage = function (id) {
|
||||
baseOpenMessage(id);
|
||||
const message = messages.find(item => item.id === id);
|
||||
if (!message || !pgpApi()) return;
|
||||
pgpRenderReaderState(message);
|
||||
if (message.encrypted && !message.pgpDecrypted && !message.pgpAutoTried) {
|
||||
message.pgpAutoTried = true;
|
||||
void pgpUnlockMessage(message, false);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Compose: encrypt/sign options.
|
||||
if (typeof showCompose === 'function') {
|
||||
const baseShowCompose = showCompose;
|
||||
showCompose = function (reply, forward = false) {
|
||||
baseShowCompose(reply, forward);
|
||||
const footer = $('#modal-root .compose-footer');
|
||||
if (!footer || !pgpApi()) return;
|
||||
const box = document.createElement('div');
|
||||
box.className = 'pgp-compose';
|
||||
box.innerHTML = `<label><input type="checkbox" id="pgp-encrypt"> Encrypt</label><label><input type="checkbox" id="pgp-sign"> Sign</label><small id="pgp-hint"></small>`;
|
||||
footer.prepend(box);
|
||||
let touched = false;
|
||||
const encrypt = $('#pgp-encrypt');
|
||||
const sign = $('#pgp-sign');
|
||||
if (reply?.encrypted) { encrypt.checked = true; sign.checked = true; touched = true; }
|
||||
encrypt.addEventListener('change', () => { touched = true; });
|
||||
let timer = null;
|
||||
const refresh = async () => {
|
||||
const to = $('#compose-to')?.value || '';
|
||||
const cc = $('#compose-cc')?.value || '';
|
||||
const hint = $('#pgp-hint');
|
||||
if (!hint) return;
|
||||
if (!to.trim()) { hint.textContent = ''; return; }
|
||||
try {
|
||||
const status = await pgpApi().checkSend({ to, cc, sign: sign.checked });
|
||||
if (!$('#pgp-hint')) return;
|
||||
if (status.missing.length) hint.textContent = `No public key for ${status.missing.join(', ')}`;
|
||||
else {
|
||||
hint.textContent = status.recipients.some(item => item.trust === 'unknown') ? 'Keys found; some are not verified yet' : 'Keys found for all recipients';
|
||||
if (!touched && !encrypt.checked) encrypt.checked = true;
|
||||
}
|
||||
} catch { hint.textContent = ''; }
|
||||
};
|
||||
const schedule = () => { clearTimeout(timer); timer = setTimeout(refresh, 300); };
|
||||
['#compose-to', '#compose-cc'].forEach(selector => $(selector)?.addEventListener('input', schedule));
|
||||
sign.addEventListener('change', schedule);
|
||||
schedule();
|
||||
};
|
||||
}
|
||||
|
||||
// Called by the send handler. Returns null (plain mail), false (cancelled) or send options.
|
||||
window.pgpPrepareSend = async function pgpPrepareSend(to, cc) {
|
||||
if (!pgpApi()) return null;
|
||||
let encrypt = Boolean($('#pgp-encrypt')?.checked);
|
||||
const sign = Boolean($('#pgp-sign')?.checked);
|
||||
if (!encrypt && !sign) return null;
|
||||
const status = await pgpApi().checkSend({ to, cc, sign });
|
||||
if (encrypt && status.missing.length) {
|
||||
const sendPlain = confirm(`No public key for ${status.missing.join(', ')}.\n\nThe message cannot be encrypted for everyone. Send it WITHOUT encryption?`);
|
||||
if (!sendPlain) return false;
|
||||
encrypt = false;
|
||||
if (!sign) return null;
|
||||
}
|
||||
let passphrase = null;
|
||||
if (sign) {
|
||||
if (!status.signer) { toast('Create or import an encryption key for your address before signing'); return false; }
|
||||
if (!status.signer.unlocked) {
|
||||
passphrase = await pgpAskPassphrase('Sign message', `Enter the passphrase for ${status.signer.email} to sign this message.`);
|
||||
if (passphrase === null) return false;
|
||||
}
|
||||
}
|
||||
return { encrypt, sign, passphrase };
|
||||
};
|
||||
+80
-1
@@ -5,8 +5,15 @@ function openEncryptionKeys() {
|
||||
const root = $('#modal-root');
|
||||
const account = connectedMailAccount || {};
|
||||
root.innerHTML = `<div class="modal-overlay"><div class="compose-modal attachments-modal"><div class="modal-head"><span>Encryption keys</span><button class="modal-close" aria-label="Close">×</button></div><div class="compose-fields">
|
||||
<p class="account-note">OpenPGP keys are protected by a passphrase and stored encrypted by your operating system. Back up your private key and revocation certificate: without them, encrypted mail cannot be recovered. Sending and reading encrypted mail is not available yet.</p>
|
||||
<p class="account-note">OpenPGP keys are protected by a passphrase and stored encrypted by your operating system. Back up your private key and revocation certificate: without them, encrypted mail cannot be recovered. Contact keys below are used to encrypt mail to your correspondents and to check signatures.</p>
|
||||
<div id="pgp-key-list" class="attachment-list">Loading keys…</div>
|
||||
<h3 class="pgp-heading">Contact public keys</h3>
|
||||
<div id="pgp-contact-list" class="attachment-list">Loading contacts…</div>
|
||||
<div class="pgp-actions"><button class="discard" id="pgp-add-contact">Import public key…</button></div>
|
||||
<h3 class="pgp-heading">Passphrase memory</h3>
|
||||
<label class="compose-line"><span>Minutes</span><input id="pgp-cache-minutes" type="number" min="0" max="1440" step="1"></label>
|
||||
<div class="pgp-actions"><button class="discard" id="pgp-save-cache">Save</button><button class="discard" id="pgp-forget">Forget passphrases now</button></div>
|
||||
<p class="account-note">Unlocked passphrases are kept in memory only, for this many minutes (0 asks every time). Opening encrypted attachments needs the passphrase to be remembered.</p>
|
||||
<h3 class="pgp-heading">Create a key</h3>
|
||||
<label class="compose-line"><span>Name</span><input id="pgp-name" maxlength="100" value="${esc(account.displayName || '')}"></label>
|
||||
<label class="compose-line"><span>Email</span><input id="pgp-email" type="email" value="${esc(account.email || '')}"></label>
|
||||
@@ -94,6 +101,78 @@ function openEncryptionKeys() {
|
||||
await render();
|
||||
} catch (error) { status(error.message || 'Could not import the key.'); }
|
||||
};
|
||||
async function renderContacts() {
|
||||
const list = $('#pgp-contact-list');
|
||||
let contacts = [];
|
||||
try { contacts = await window.daybreakMail.pgp.contacts(); } catch (error) { list.textContent = error.message || 'Could not load contacts.'; return; }
|
||||
list.replaceChildren();
|
||||
if (!contacts.length) { list.textContent = 'No contact keys yet. Import a public key, or add one from a received message.'; return; }
|
||||
contacts.forEach(contact => {
|
||||
const row = document.createElement('div');
|
||||
row.className = 'attachment-row';
|
||||
const info = document.createElement('div');
|
||||
info.className = 'attachment-row-info';
|
||||
const title = document.createElement('strong');
|
||||
title.textContent = contact.emails.join(', ') || contact.name || 'Public key';
|
||||
const meta = document.createElement('small');
|
||||
meta.textContent = `${contact.name ? contact.name + ' · ' : ''}added ${new Date(contact.addedAt).toLocaleDateString()} · from ${contact.source}`;
|
||||
const fingerprint = document.createElement('small');
|
||||
fingerprint.textContent = `Fingerprint: ${contact.fingerprint.match(/.{1,4}/g).join(' ')}`;
|
||||
info.append(title, meta, fingerprint);
|
||||
const trust = document.createElement('select');
|
||||
trust.className = 'pgp-trust';
|
||||
trust.setAttribute('aria-label', 'Key trust');
|
||||
[['unknown', 'Not verified'], ['trusted', 'Trusted'], ['verified', 'Verified (fingerprint checked)']].forEach(([value, label]) => {
|
||||
const option = document.createElement('option');
|
||||
option.value = value; option.textContent = label; option.selected = contact.trust === value;
|
||||
trust.append(option);
|
||||
});
|
||||
trust.onchange = async () => {
|
||||
if (trust.value === 'verified' && !confirm(`Mark this key as verified only if you compared this fingerprint with its owner through another channel:\n\n${contact.fingerprint.match(/.{1,4}/g).join(' ')}`)) {
|
||||
trust.value = contact.trust;
|
||||
return;
|
||||
}
|
||||
try { await window.daybreakMail.pgp.setTrust(contact.fingerprint, trust.value); contact.trust = trust.value; status('Trust updated.'); }
|
||||
catch (error) { trust.value = contact.trust; status(error.message || 'Could not update trust.'); }
|
||||
};
|
||||
const actions = [
|
||||
['Export', () => window.daybreakMail.pgp.exportContact(contact.fingerprint)],
|
||||
['Remove', async () => {
|
||||
if (!confirm('Remove this contact key? You will no longer be able to encrypt to it.')) return { canceled: true };
|
||||
await window.daybreakMail.pgp.removeContact(contact.fingerprint);
|
||||
await renderContacts();
|
||||
return { deleted: true };
|
||||
}]
|
||||
];
|
||||
row.append(info, trust);
|
||||
actions.forEach(([label, run]) => {
|
||||
const button = document.createElement('button');
|
||||
button.className = 'discard';
|
||||
button.textContent = label;
|
||||
button.onclick = async () => {
|
||||
try { const result = await run(); status(result?.saved ? 'File saved.' : result?.deleted ? 'Contact key removed.' : ''); }
|
||||
catch (error) { status(error.message || 'That action failed.'); }
|
||||
};
|
||||
row.append(button);
|
||||
});
|
||||
list.append(row);
|
||||
});
|
||||
}
|
||||
|
||||
$('#pgp-add-contact').onclick = async () => {
|
||||
try {
|
||||
const result = await window.daybreakMail.pgp.addContact({});
|
||||
if (!result.canceled) status(result.keyChangedFrom?.length ? 'Key added. Warning: you already had a different key for this address. Verify the new fingerprint.' : 'Public key added. Verify its fingerprint with the owner, then mark it as verified.');
|
||||
await renderContacts();
|
||||
} catch (error) { status(error.message || 'Could not import the key.'); }
|
||||
};
|
||||
window.daybreakMail.pgp.getSettings().then(settings => { $('#pgp-cache-minutes').value = settings.cacheMinutes; }).catch(() => {});
|
||||
$('#pgp-save-cache').onclick = async () => {
|
||||
try { const settings = await window.daybreakMail.pgp.setSettings({ cacheMinutes: Number($('#pgp-cache-minutes').value) }); status(`Passphrases are remembered for ${settings.cacheMinutes} minute(s).`); }
|
||||
catch (error) { status(error.message || 'Could not save the setting.'); }
|
||||
};
|
||||
$('#pgp-forget').onclick = async () => { await window.daybreakMail.pgp.forgetPassphrases(); status('Remembered passphrases were cleared.'); };
|
||||
void renderContacts();
|
||||
void render();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const CACHE='ep-mail-v6';
|
||||
const FILES=['./','./index.html','./styles.css','./branding.css','./app.js','./platform-bridge.js','./mail-ui.js','./productivity.js','./snooze-ui.js','./account-ui.js','./dav-ui.js','./shortcuts.js','./attachments.js','./pgp-ui.js','./manifest.webmanifest','./icon.svg','./logo-ep-daylight.svg','./logo-ep-wasteland.svg'];
|
||||
const CACHE='ep-mail-v7';
|
||||
const FILES=['./','./index.html','./styles.css','./branding.css','./app.js','./platform-bridge.js','./mail-ui.js','./productivity.js','./snooze-ui.js','./account-ui.js','./dav-ui.js','./shortcuts.js','./attachments.js','./pgp-ui.js','./pgp-mail-ui.js','./manifest.webmanifest','./icon.svg','./logo-ep-daylight.svg','./logo-ep-wasteland.svg'];
|
||||
self.addEventListener('install',event=>event.waitUntil(caches.open(CACHE).then(cache=>cache.addAll(FILES))));
|
||||
self.addEventListener('activate',event=>event.waitUntil(caches.keys().then(keys=>Promise.all(keys.filter(k=>k!==CACHE).map(k=>caches.delete(k))))));
|
||||
self.addEventListener('fetch',event=>{if(event.request.method!=='GET')return;event.respondWith(caches.match(event.request).then(cached=>cached||fetch(event.request).then(response=>{if(new URL(event.request.url).origin===location.origin){const copy=response.clone();caches.open(CACHE).then(cache=>cache.put(event.request,copy))}return response}).catch(()=>caches.match('./index.html'))))});
|
||||
|
||||
@@ -129,3 +129,10 @@ body.ep-daylight .row-check:checked{accent-color:#526a2c}
|
||||
.shortcut-settings h3{margin:16px 0 4px;font-size:13px}.shortcut-settings code{font-family:monospace}.shortcut-input{text-transform:none}.shortcut-settings #reset-shortcuts{margin-top:8px}
|
||||
.attachments-modal{width:min(720px,94vw)}.attachment-toolbar{display:flex;gap:8px;margin-bottom:10px}.attachment-toolbar input{flex:1}.attachment-list{max-height:60vh;overflow:auto;display:grid;gap:8px}.attachment-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:8px}.attachment-row-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.attachment-row-info strong,.attachment-row-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-preview{flex-basis:100%;max-height:320px;overflow:auto;padding:8px;font-size:12px}.attachment-preview-image{max-width:100%;max-height:300px;display:block}.attachment-preview-text{margin:0;white-space:pre-wrap;word-break:break-word}.preview-attachment{font-size:14px}
|
||||
.pgp-heading{margin:16px 0 4px;font-size:13px}.pgp-actions{display:flex;gap:8px;margin-top:8px}#open-encryption-keys{margin-top:12px}
|
||||
|
||||
.pgp-prompt{z-index:2000}.pgp-prompt-box{max-width:420px}
|
||||
.pgp-status,.pgp-banner{display:flex;flex-direction:column;gap:2px;margin:10px 0;padding:10px 12px;border-radius:8px;border:1px solid var(--line,#c9d1c8);font-size:13px}
|
||||
.pgp-status small{opacity:.85}.pgp-ok{border-color:#3d7a4f;background:rgba(61,122,79,.12)}.pgp-warn{border-color:#b8860b;background:rgba(184,134,11,.14)}.pgp-bad{border-color:#b3261e;background:rgba(179,38,30,.14)}
|
||||
.pgp-banner button,.pgp-status button{align-self:flex-start;margin-top:6px}
|
||||
.pgp-compose{display:flex;align-items:center;gap:12px;margin-right:auto;font-size:13px}.pgp-compose label{display:flex;align-items:center;gap:4px}.pgp-compose small{opacity:.8}
|
||||
.pgp-trust{margin-left:8px}
|
||||
|
||||
Reference in New Issue
Block a user