Minor mobile fixes

This commit is contained in:
WardPearce
2024-05-03 19:49:22 +12:00
parent 1bb7b5a521
commit f2faf1a760
2 changed files with 15 additions and 5 deletions
@@ -52,7 +52,7 @@
{/each}
<div class="s12 m6 l2">
<article style="height: 100%;display: flex;align-items: center;justify-content: center;">
<button data-ui="#create-playlist" class="round extra">
<button on:click={() => ui('#create-playlist')} class="round extra">
<i>add_circle</i>
<span>{$_('playlist.createPlaylist')}</span>
</button>
@@ -84,7 +84,7 @@
</nav>
</div>
<nav class="right-align">
<button type="button" data-ui="#create-playlist">{$_('cancel')}</button>
<button type="button" on:click={() => ui('#create-playlist')}>{$_('cancel')}</button>
<button type="submit">{$_('create')}</button>
</nav>
</form>
@@ -1,6 +1,5 @@
<script lang="ts">
import { deleteUnsubscribe } from '$lib/Api';
import { truncate } from '$lib/misc';
import Fuse from 'fuse.js';
import { _ } from 'svelte-i18n';
import { activePageStore } from '../../../store';
@@ -49,9 +48,20 @@
{#each subscriptions as sub}
<article>
<nav>
<a href={`/channel/${sub.authorId}`}><h6>{truncate(sub.author, 18)}</h6></a>
<div class="max"></div>
<a href={`/channel/${sub.authorId}`} style="flex: 1;"
><h6>
{sub.author}
</h6></a
>
<button on:click={async () => unsubscribe(sub.authorId)} class="border">Unsubscribe</button>
</nav>
</article>
{/each}
<style>
@media screen and (max-width: 590px) {
nav {
flex-direction: column;
}
}
</style>