Constrain home album artwork size
This commit is contained in:
1 parent
2ccfbff285
commit
73b1d3513c
2 files changed
+2
-1
No files matched your search
@@ -21,7 +21,7 @@ struct AlbumArtworkView: View {
|
|||||||
artworkPlaceholder
|
artworkPlaceholder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: geometry.size.width, height: geometry.size.height)
|
.frame(width: geometry.size.width, height: geometry.size.width)
|
||||||
.clipped()
|
.clipped()
|
||||||
}
|
}
|
||||||
.aspectRatio(1, contentMode: .fit)
|
.aspectRatio(1, contentMode: .fit)
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ private struct HomeAlbumCard: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 5) {
|
VStack(alignment: .leading, spacing: 5) {
|
||||||
AlbumArtworkView(url: artworkURL)
|
AlbumArtworkView(url: artworkURL)
|
||||||
|
.frame(maxWidth: 150)
|
||||||
|
|
||||||
Text(album.name)
|
Text(album.name)
|
||||||
.font(.subheadline.weight(.medium))
|
.font(.subheadline.weight(.medium))
|
||||||
|
|||||||
Reference in new issue
Block a user