Pin Listening header so only song content scrolls
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m36s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m36s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -30,13 +30,16 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="listening-wrapper">
|
<div class="listening-wrapper">
|
||||||
|
<div class="header-wrapper">
|
||||||
|
<Header>Listening To</Header>
|
||||||
|
</div>
|
||||||
|
<div class="content-scroll">
|
||||||
<Transition name="fade">
|
<Transition name="fade">
|
||||||
<div
|
<div
|
||||||
@click="nextSong"
|
@click="nextSong"
|
||||||
:key="song.track.name"
|
:key="song.track.name"
|
||||||
class="flex flex-col items-center pt-2"
|
class="flex flex-col items-center"
|
||||||
>
|
>
|
||||||
<Header>Listening To</Header>
|
|
||||||
<img
|
<img
|
||||||
:src="song.track.album.images[0].url"
|
:src="song.track.album.images[0].url"
|
||||||
:alt="song.track.album.name + ' album art'"
|
:alt="song.track.album.name + ' album art'"
|
||||||
@@ -48,6 +51,7 @@ onUnmounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -56,6 +60,21 @@ onUnmounted(() => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-wrapper {
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-scroll {
|
||||||
|
position: relative;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user