This commit is contained in:
anlicheng 2025-03-03 21:50:34 +08:00
parent 2175a8c74e
commit 23b6664c04
3 changed files with 19 additions and 13 deletions

View File

@ -257,17 +257,19 @@ struct DetailView: View {
} }
} }
HStack(alignment: .center) { if detailModel.selectedEpisodes.count >= 5 {
NavigationLink(destination: ListView(id: self.id)) { HStack(alignment: .center) {
Rectangle() NavigationLink(destination: ListView(id: self.id)) {
.frame(width: 200, height: 25) Rectangle()
.foregroundColor(Color(hex: "#F2F2F2")) .frame(width: 200, height: 25)
.overlay { .foregroundColor(Color(hex: "#F2F2F2"))
Text("展开全部剧集") .overlay {
.font(.system(size: 13)) Text("展开全部剧集")
.foregroundColor(Color(hex: "#999999")) .font(.system(size: 13))
.fontWeight(.regular) .foregroundColor(Color(hex: "#999999"))
} .fontWeight(.regular)
}
}
} }
} }

View File

@ -422,7 +422,11 @@ extension IndexView {
VStack(alignment: .center) { VStack(alignment: .center) {
GeometryReader { geometry in GeometryReader { geometry in
AsyncImage(url: URL(string: item.thumb)) { image in AsyncImage(url: URL(string: item.thumb)) { image in
image.resizable() image
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: geometry.frame(in: .local).width, height: 80)
.clipped()
} placeholder: { } placeholder: {
ProgressView() ProgressView()
} }

View File

@ -113,7 +113,7 @@ struct ListView: View {
// //
ScrollView(.vertical, showsIndicators: false) { ScrollView(.vertical, showsIndicators: false) {
VStack(alignment: .center, spacing: 15) { LazyVStack(alignment: .center, spacing: 15) {
ForEach(detailModel.selectedEpisodes) { episode in ForEach(detailModel.selectedEpisodes) { episode in
HStack(alignment: .center) { HStack(alignment: .center) {
AsyncImage(url: URL(string: episode.thumb)) { image in AsyncImage(url: URL(string: episode.thumb)) { image in