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
|
||||
}
|
||||
}
|
||||
.frame(width: geometry.size.width, height: geometry.size.height)
|
||||
.frame(width: geometry.size.width, height: geometry.size.width)
|
||||
.clipped()
|
||||
}
|
||||
.aspectRatio(1, contentMode: .fit)
|
||||
|
||||
@@ -120,6 +120,7 @@ private struct HomeAlbumCard: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 5) {
|
||||
AlbumArtworkView(url: artworkURL)
|
||||
.frame(maxWidth: 150)
|
||||
|
||||
Text(album.name)
|
||||
.font(.subheadline.weight(.medium))
|
||||
|
||||
Reference in new issue
Block a user