mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
add functionality to adjust image position
This commit is contained in:
committed by
Mungai Njoroge
parent
4d4a276ed8
commit
ceedc22843
@@ -5,6 +5,7 @@
|
||||
:style="[
|
||||
{
|
||||
backgroundImage: info.image ? `url(${imguri + info.image})` : undefined,
|
||||
backgroundPosition: `center ${bannerPos}%`,
|
||||
},
|
||||
]"
|
||||
:class="{ border: !info.image }"
|
||||
@@ -28,7 +29,7 @@
|
||||
<span class="status"
|
||||
>Last updated {{ info.last_updated }}  |  </span
|
||||
>
|
||||
<span class="edit" @click="editPlaylist">Edit  |</span>
|
||||
<div class="edit" @click="editPlaylist">Edit  |</div>
|
||||
<DeleteSvg class="edit" @click="deletePlaylist" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,7 +57,7 @@ const playlist = usePStore();
|
||||
const imguri = paths.images.playlist;
|
||||
|
||||
const playlistheader = ref<HTMLElement | null>(null);
|
||||
const { info } = storeToRefs(playlist);
|
||||
const { info, bannerPos } = storeToRefs(playlist);
|
||||
|
||||
useVisibility(playlistheader, nav.toggleShowPlay);
|
||||
|
||||
@@ -76,6 +77,7 @@ function deletePlaylist() {
|
||||
height: $banner-height;
|
||||
position: relative;
|
||||
background-color: $gray5;
|
||||
background-position: center 50%;
|
||||
|
||||
.gradient {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user