Merge pull request #66 from WardPearce/fix/sub-manage-mobile

Max author length for sub manage view
This commit is contained in:
Ward
2024-04-07 14:28:32 +12:00
committed by GitHub
@@ -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}