Max author length for sub manage view

This commit is contained in:
WardPearce
2024-04-07 14:27:52 +12:00
parent 9303a9b151
commit 4dd45a5c12
@@ -1,5 +1,6 @@
<script lang="ts">
import { deleteUnsubscribe } from '$lib/Api';
import { truncate } from '$lib/misc';
import Fuse from 'fuse.js';
import { activePage } from '../../../store';
@@ -47,9 +48,9 @@
{#each subscriptions as sub}
<article>
<nav>
<a href={`/channel/${sub.authorId}`}><h6>{sub.author}</h6></a>
<a href={`/channel/${sub.authorId}`}><h6>{truncate(sub.author, 18)}</h6></a>
<div class="max"></div>
<button on:click={async () => unsubscribe(sub.authorId)} class="border"> Unsubscribe </button>
<button on:click={async () => unsubscribe(sub.authorId)} class="border">Unsubscribe</button>
</nav>
</article>
{/each}