diff --git a/src/components/App.svelte b/src/components/App.svelte index a32ef6b..18f95ac 100644 --- a/src/components/App.svelte +++ b/src/components/App.svelte @@ -6,17 +6,12 @@
{#if $current} + {/if}
- - -
- -
-
@@ -33,59 +28,5 @@ .app { min-width: 100%; min-height: 100%; - - display: grid; - - grid-template-columns: 1fr; - - grid-template-areas: - "header" - "viewer" - "queue" - "controls"; - } - - .header { - grid-area: header; - position: sticky; - top: 0; - background: blueviolet; - color: whitesmoke; - - padding: 0.4rem 0.8rem; - } - - .header h1 { - margin: 0; - } - - .viewer { - grid-area: viewer; - } - - .queue { - grid-area: queue; - } - - .controls { - grid-area: controls; - width: 100%; - - position: sticky; - bottom: 0; - - background: whitesmoke; - } - - @media (min-width: 992px) { - .app { - grid-template-columns: 2fr 3fr; - grid-template-rows: auto 1fr auto; - - grid-template-areas: - "header queue" - "viewer queue" - "controls controls" - } } \ No newline at end of file diff --git a/src/components/Queue.svelte b/src/components/Queue.svelte index 9c98848..24fc97d 100644 --- a/src/components/Queue.svelte +++ b/src/components/Queue.svelte @@ -1,5 +1,19 @@
- {#each $queue as track, i} +
PLAY NEXT
+ {#if $next} +
+
{$next.metadata.title}
+
by {$next.status.account.acct}
+
+ {/if} + + {#if $enqueueing} + LOADING NEXT + {/if} + + +
HISTORY
+ {#each $queue as track, i (track.status.id)}
-
-
{track.metadata.title}
- -
- {track.status.account.username} {track.status.account.acct} - {track.data.url} -
-
+
{track.metadata.title}
+
by {track.status.account.acct}
{/each} - - {#if $enqueueing} - LOADING ... - {/if}