mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
Fixed episode chunk alignment
This commit is contained in:
parent
5607ec70ff
commit
f6f9bcaa8f
1 changed files with 23 additions and 20 deletions
|
|
@ -540,19 +540,6 @@ struct MediaInfoView: View {
|
||||||
if episodeLinks.count != 1 {
|
if episodeLinks.count != 1 {
|
||||||
VStack(alignment: .leading, spacing: 16) {
|
VStack(alignment: .leading, spacing: 16) {
|
||||||
episodesSectionHeader
|
episodesSectionHeader
|
||||||
if isGroupedBySeasons || episodeLinks.count > episodeChunkSize {
|
|
||||||
HStack(spacing: 8) {
|
|
||||||
if isGroupedBySeasons {
|
|
||||||
seasonSelectorStyled
|
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
if episodeLinks.count > episodeChunkSize {
|
|
||||||
rangeSelectorStyled
|
|
||||||
.padding(.trailing, 4)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.padding(.top, -8)
|
|
||||||
}
|
|
||||||
episodeListSection
|
episodeListSection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -614,6 +601,20 @@ struct MediaInfoView: View {
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
|
if isGroupedBySeasons || episodeLinks.count > episodeChunkSize {
|
||||||
|
HStack(spacing: 8) {
|
||||||
|
if isGroupedBySeasons {
|
||||||
|
seasonSelectorStyled
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
if episodeLinks.count > episodeChunkSize {
|
||||||
|
rangeSelectorStyled
|
||||||
|
.padding(.trailing, 4)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.padding(.top, -8)
|
||||||
|
}
|
||||||
|
|
||||||
sourceButton
|
sourceButton
|
||||||
menuButton
|
menuButton
|
||||||
}
|
}
|
||||||
|
|
@ -715,17 +716,19 @@ struct MediaInfoView: View {
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
Spacer()
|
Spacer()
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
|
if chapters.count > chapterChunkSize {
|
||||||
|
HStack {
|
||||||
|
Spacer()
|
||||||
|
chapterRangeSelectorStyled
|
||||||
|
}
|
||||||
|
.padding(.bottom, 0)
|
||||||
|
}
|
||||||
|
|
||||||
sourceButton
|
sourceButton
|
||||||
menuButton
|
menuButton
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if chapters.count > chapterChunkSize {
|
|
||||||
HStack {
|
|
||||||
Spacer()
|
|
||||||
chapterRangeSelectorStyled
|
|
||||||
}
|
|
||||||
.padding(.bottom, 0)
|
|
||||||
}
|
|
||||||
LazyVStack(spacing: 15) {
|
LazyVStack(spacing: 15) {
|
||||||
ForEach(chapters.indices.filter { selectedChapterRange.contains($0) }, id: \..self) { i in
|
ForEach(chapters.indices.filter { selectedChapterRange.contains($0) }, id: \..self) { i in
|
||||||
let chapter = chapters[i]
|
let chapter = chapters[i]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue