mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +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(.horizontal, 12)
|
||||||
.padding(.top, -15)
|
.padding(.top, -15)
|
||||||
.padding(.bottom, shouldShowReminderList ? ReminderLiveActivityManager.listBottomPadding : ReminderLiveActivityManager.baselineMinimalisticBottomPadding)
|
.padding(.bottom, ReminderLiveActivityManager.baselineMinimalisticBottomPadding)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.frame(height: calculateDynamicHeight(), alignment: .center)
|
.frame(height: calculateDynamicHeight(), alignment: .top)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - TypingLyricView
|
// MARK: - TypingLyricView
|
||||||
|
|
@ -172,12 +172,12 @@ struct MinimalisticMusicPlayerView: View {
|
||||||
|
|
||||||
// Add reminder list height if showing
|
// Add reminder list height if showing
|
||||||
if shouldShowReminderList {
|
if shouldShowReminderList {
|
||||||
height += reminderListHeight + ReminderLiveActivityManager.listTopPadding
|
height += reminderListHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add padding
|
// Add padding
|
||||||
height += 15 // top padding
|
height += 15 // top padding
|
||||||
height += shouldShowReminderList ? ReminderLiveActivityManager.listBottomPadding : ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
height += ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
||||||
|
|
||||||
return height
|
return height
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@ var minimalisticOpenNotchSize: CGSize {
|
||||||
if reminderCount > 0 {
|
if reminderCount > 0 {
|
||||||
let reminderHeight = ReminderLiveActivityManager.additionalHeight(forRowCount: reminderCount)
|
let reminderHeight = ReminderLiveActivityManager.additionalHeight(forRowCount: reminderCount)
|
||||||
size.height += reminderHeight
|
size.height += reminderHeight
|
||||||
size.height += ReminderLiveActivityManager.listTopPadding
|
|
||||||
size.height += ReminderLiveActivityManager.listBottomPadding - ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return size
|
return size
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue