Improved mobile library pages

This commit is contained in:
lucast committed 2026-10-06 04:13:02 +02:00
1 parent ce0bf50223
commit 8f6f9ef78e
4 files changed
+112 -2

No files matched your search

+19
View File
@@ -64,4 +64,23 @@ useHead({ title: "Albums" })
opacity: 0.7;
margin: 0.75rem 0;
}
@media (max-width: 767px) {
.album-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.album-list :deep(.card) {
min-width: 0;
max-width: none;
}
.album-list :deep(.card img) {
display: block;
width: 100%;
height: auto;
}
}
</style>
+18
View File
@@ -60,4 +60,22 @@ useHead({ title: "Artists" })
opacity: 0.7;
margin: 0.75rem 0;
}
@media (max-width: 767px) {
.artist-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.artist-list :deep(.card) {
min-width: 0;
}
.artist-list :deep(.card img) {
display: block;
width: 100%;
height: auto;
}
}
</style>
+8
View File
@@ -54,6 +54,7 @@ useHead({ title: "Songs" })
:track="track"
:index="index"
:extended-info="true"
library-list
@play-album-at-index="() => playAlbumAtIndex(tracks, index)"
@remove-from-library="removeFromLibrary"
/>
@@ -97,4 +98,11 @@ useHead({ title: "Songs" })
opacity: 0.7;
margin: 0.75rem 0;
}
@media (max-width: 359px) {
.page-header {
flex-wrap: wrap;
justify-content: flex-start;
}
}
</style>