alignment fixes

This commit is contained in:
Ethan Pippin 2022-01-07 15:55:35 -07:00
parent 158edb3b5f
commit 8d604827ea
2 changed files with 5 additions and 1 deletions

View File

@ -57,6 +57,7 @@ struct ContinueWatchingCard: View {
.fontWeight(.semibold) .fontWeight(.semibold)
.foregroundColor(.primary) .foregroundColor(.primary)
.lineLimit(1) .lineLimit(1)
.frame(width: 500, alignment: .leading)
if item.itemType == .episode { if item.itemType == .episode {
Text(item.getEpisodeLocator() ?? "") Text(item.getEpisodeLocator() ?? "")
@ -64,8 +65,11 @@ struct ContinueWatchingCard: View {
.fontWeight(.medium) .fontWeight(.medium)
.foregroundColor(.secondary) .foregroundColor(.secondary)
.lineLimit(1) .lineLimit(1)
} else {
Text("")
} }
} }
} }
.padding(.vertical)
} }
} }

View File

@ -25,7 +25,7 @@ struct ContinueWatchingView: View {
.padding(.leading, 50) .padding(.leading, 50)
ScrollView(.horizontal, showsIndicators: false) { ScrollView(.horizontal, showsIndicators: false) {
LazyHStack { LazyHStack(alignment: .top) {
ForEach(items, id: \.self) { item in ForEach(items, id: \.self) { item in
ContinueWatchingCard(item: item) ContinueWatchingCard(item: item)
} }