Fix: Padding

This commit is contained in:
Hariharan Mudaliar 2025-11-18 00:58:59 +05:30
commit 9f57cc0a38
2 changed files with 4 additions and 6 deletions

View file

@ -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
} }

View file

@ -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