tentative fix for caching issues (#3), plus ux cleanup
This commit is contained in:
parent
b5bb27e1b2
commit
4fdf8b57c9
3 changed files with 52 additions and 56 deletions
|
@ -6,6 +6,7 @@
|
|||
import Dialog from './Dialog.svelte';
|
||||
import Select from './Select.svelte';
|
||||
import type { Letter } from '$lib/letter';
|
||||
import { slide } from 'svelte/transition';
|
||||
|
||||
let {
|
||||
letters,
|
||||
|
@ -112,7 +113,8 @@
|
|||
{#snippet letterGroup(letters)}
|
||||
<div class="letter-group">
|
||||
{#each letters as letter}
|
||||
<a class="letter-item" href="/letters/{letter.id}">
|
||||
{#key letter.id}
|
||||
<a in:slide out:slide class="letter-item" href="/letters/{letter.id}">
|
||||
<div class="subject-line">
|
||||
<div class="letter-subject">
|
||||
<Icon icon="mdi:letter-outline" /> {letter.subject}
|
||||
|
@ -142,6 +144,7 @@
|
|||
</div>
|
||||
<div class="letter-preview">{letter.preview}</div>
|
||||
</a>
|
||||
{/key}
|
||||
{/each}
|
||||
</div>
|
||||
{/snippet}
|
||||
|
@ -161,6 +164,7 @@
|
|||
<div class="letter-list">
|
||||
<div class="letter-group">
|
||||
{#each letters as letter}
|
||||
{#key letter.id}
|
||||
<div class="letter-item"
|
||||
onclick={() => clickedLetter(letter)}
|
||||
class:selected={selectedLetters.includes(letter.id)}
|
||||
|
@ -180,6 +184,7 @@
|
|||
<NostrIdentifier user={letter.from.npub} emailAddress={letter.emailAddress} />
|
||||
</div>
|
||||
</div>
|
||||
{/key}
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<Icon icon="ph:user" />
|
||||
{/if}
|
||||
</div>
|
||||
{#if npub !== displayString}
|
||||
{#if npub !== displayString && !emailAddress}
|
||||
<Tooltip position="bottom" content={npub}>
|
||||
<span class="user-text">{displayString}</span>
|
||||
</Tooltip>
|
||||
|
|
|
@ -5,15 +5,6 @@ import { TokenInfoWithMailSubscriptionDuration } from '@arx/utils';
|
|||
function parseTextPlainContent(mimeMessage: string) {
|
||||
const boundary = mimeMessage.split('\n')[0];
|
||||
|
||||
// --7408fffb1a494ae39c2dde2c60878849
|
||||
// Content-Type: text/plain
|
||||
// Content-Transfer-Encoding: 7bit
|
||||
//
|
||||
// test
|
||||
// --7408fffb1a494ae39c2dde2c60878849
|
||||
// Content-Type: text/html
|
||||
// Content-Transfer-Encoding: 7bit
|
||||
|
||||
const boundaries = mimeMessage.split(boundary + '\n');
|
||||
boundaries.shift();
|
||||
|
||||
|
|
Loading…
Reference in a new issue