add some top padding when new posts button is shown (#55)

Co-authored-by: Jérôme Danthinne <jerome.danthinne@smile.eu>
This commit is contained in:
Jérôme Danthinne 2023-01-10 14:44:34 +01:00 committed by GitHub
parent cd78cab073
commit d447a8fdd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public struct TimelineView: View {
StatusesListView(fetcher: viewModel)
}
}
.padding(.top, .layoutPadding)
.padding(.top, .layoutPadding + (!viewModel.pendingStatuses.isEmpty ? 28 : 0))
}
.background(theme.primaryBackgroundColor)
if viewModel.pendingStatusesEnabled {