fix(ui): adjust album overlay layout and home limits
This commit is contained in:
1 parent
98da003dcb
commit
fc6a6cefe3
2 files changed
+22
-9
No files matched your search
@@ -55,9 +55,8 @@
|
||||
let artistOverflow = $state(0);
|
||||
const titleOffset = $derived(titleOverflow > 0 ? `-${titleOverflow + 16}px` : '0px');
|
||||
const artistOffset = $derived(artistOverflow > 0 ? `-${artistOverflow + 16}px` : '0px');
|
||||
const tickerSpeed = 80;
|
||||
const titleDuration = $derived(titleOverflow > 0 ? `${(titleOverflow + 16) / tickerSpeed}s` : '0s');
|
||||
const artistDuration = $derived(artistOverflow > 0 ? `${(artistOverflow + 16) / tickerSpeed}s` : '0s');
|
||||
const titleDuration = $derived(titleOverflow > 0 ? '6s' : '0s');
|
||||
const artistDuration = $derived(artistOverflow > 0 ? '6s' : '0s');
|
||||
|
||||
let favoriteFromStore = $state(false);
|
||||
const isFavorite = $derived(albumId ? favoriteFromStore : false);
|
||||
@@ -270,9 +269,9 @@
|
||||
|
||||
.action-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
inset: -1px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity 150ms ease;
|
||||
@@ -280,6 +279,7 @@
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
pointer-events: none;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.album-card:hover .action-overlay {
|
||||
@@ -291,6 +291,10 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
pointer-events: auto;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 75%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.overlay-btn {
|
||||
|
||||
@@ -90,9 +90,9 @@
|
||||
);
|
||||
|
||||
const LIMITS = {
|
||||
recentAlbums: 12,
|
||||
continueTracks: 8,
|
||||
topArtists: 10,
|
||||
recentAlbums: 20,
|
||||
continueTracks: 10,
|
||||
topArtists: 20,
|
||||
favoriteAlbums: 12,
|
||||
favoriteTracks: 10,
|
||||
featuredAlbums: 12
|
||||
@@ -642,7 +642,7 @@
|
||||
<div class="section-header">
|
||||
<h2>Continue Listening</h2>
|
||||
</div>
|
||||
<div class="track-list">
|
||||
<div class="track-list compact">
|
||||
{#each continueTracks as track, index}
|
||||
<TrackRow
|
||||
trackId={track.id}
|
||||
@@ -888,6 +888,15 @@
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.track-list.compact {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.track-list.compact :global(.track-row.compact) {
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.artist-card {
|
||||
width: 160px;
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user