formatting

This commit is contained in:
Toni Förster 2023-11-22 10:23:42 +01:00
parent e436dec4ba
commit a33a1d7658
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -318,7 +318,8 @@ struct VideoDetails: View {
if player.videoBeingOpened.isNil {
if showChapters,
!video.isLocal,
!video.chapters.isEmpty {
!video.chapters.isEmpty
{
Section(header: chaptersHeader) {
ChaptersView(expand: $chaptersExpanded)
}
@ -331,7 +332,8 @@ struct VideoDetails: View {
if showRelated,
!sidebarQueue,
!(player.videoForDisplay?.related.isEmpty ?? true) {
!(player.videoForDisplay?.related.isEmpty ?? true)
{
RelatedView()
.padding(.horizontal)
.padding(.top, 20)
@ -389,7 +391,8 @@ struct VideoDetails: View {
if showScrollToTopInComments,
page == .comments,
comments.loaded,
comments.all.count > 3 {
comments.all.count > 3
{
Button {
withAnimation {
proxy.scrollTo(Self.pageMenuID)