mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
formatting
This commit is contained in:
parent
e436dec4ba
commit
a33a1d7658
@ -318,7 +318,8 @@ struct VideoDetails: View {
|
|||||||
if player.videoBeingOpened.isNil {
|
if player.videoBeingOpened.isNil {
|
||||||
if showChapters,
|
if showChapters,
|
||||||
!video.isLocal,
|
!video.isLocal,
|
||||||
!video.chapters.isEmpty {
|
!video.chapters.isEmpty
|
||||||
|
{
|
||||||
Section(header: chaptersHeader) {
|
Section(header: chaptersHeader) {
|
||||||
ChaptersView(expand: $chaptersExpanded)
|
ChaptersView(expand: $chaptersExpanded)
|
||||||
}
|
}
|
||||||
@ -331,7 +332,8 @@ struct VideoDetails: View {
|
|||||||
|
|
||||||
if showRelated,
|
if showRelated,
|
||||||
!sidebarQueue,
|
!sidebarQueue,
|
||||||
!(player.videoForDisplay?.related.isEmpty ?? true) {
|
!(player.videoForDisplay?.related.isEmpty ?? true)
|
||||||
|
{
|
||||||
RelatedView()
|
RelatedView()
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.padding(.top, 20)
|
.padding(.top, 20)
|
||||||
@ -389,7 +391,8 @@ struct VideoDetails: View {
|
|||||||
if showScrollToTopInComments,
|
if showScrollToTopInComments,
|
||||||
page == .comments,
|
page == .comments,
|
||||||
comments.loaded,
|
comments.loaded,
|
||||||
comments.all.count > 3 {
|
comments.all.count > 3
|
||||||
|
{
|
||||||
Button {
|
Button {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
proxy.scrollTo(Self.pageMenuID)
|
proxy.scrollTo(Self.pageMenuID)
|
||||||
|
Loading…
Reference in New Issue
Block a user