mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fix: Padding
This commit is contained in:
parent
c34cdfc864
commit
9f57cc0a38
2 changed files with 4 additions and 6 deletions
|
|
@ -78,9 +78,9 @@ struct MinimalisticMusicPlayerView: View {
|
|||
}
|
||||
.padding(.horizontal, 12)
|
||||
.padding(.top, -15)
|
||||
.padding(.bottom, shouldShowReminderList ? ReminderLiveActivityManager.listBottomPadding : ReminderLiveActivityManager.baselineMinimalisticBottomPadding)
|
||||
.padding(.bottom, ReminderLiveActivityManager.baselineMinimalisticBottomPadding)
|
||||
.frame(maxWidth: .infinity)
|
||||
.frame(height: calculateDynamicHeight(), alignment: .center)
|
||||
.frame(height: calculateDynamicHeight(), alignment: .top)
|
||||
}
|
||||
|
||||
// MARK: - TypingLyricView
|
||||
|
|
@ -172,12 +172,12 @@ struct MinimalisticMusicPlayerView: View {
|
|||
|
||||
// Add reminder list height if showing
|
||||
if shouldShowReminderList {
|
||||
height += reminderListHeight + ReminderLiveActivityManager.listTopPadding
|
||||
height += reminderListHeight
|
||||
}
|
||||
|
||||
// Add padding
|
||||
height += 15 // top padding
|
||||
height += shouldShowReminderList ? ReminderLiveActivityManager.listBottomPadding : ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
||||
height += ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
||||
|
||||
return height
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue