commit 1982598c70df1facb40725d1200563c3b44e38f1
parent 27e90b5a958d93a4e1cc053efc648332183c81a3
Author: Michael Camilleri <[email protected]>
Date: Sat, 6 Jun 2026 14:54:11 +0900
Adjust placement of replay controls
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Crossmate/Views/SuccessPanel.swift b/Crossmate/Views/SuccessPanel.swift
@@ -247,7 +247,8 @@ struct SuccessPanel: View {
}
.padding(.leading, 18)
.padding(.trailing, 24)
- .padding(.vertical, 10)
+ .padding(.top, 8)
+ .padding(.bottom, 4)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
@@ -288,7 +289,7 @@ private struct ReplayScrubber: View {
}
}
.padding(.horizontal, 18)
- .padding(.top, 6)
+ .padding(.top, 14)
}
private func slider(count: Int) -> some View {
@@ -353,6 +354,9 @@ private struct ReplayScrubber: View {
.accessibilityValue("Speed \(replay.selectedPlaybackSpeed) of \(ReplayControls.maxPlaybackSpeed)")
}
.frame(width: 30, height: 22)
+ // The symbol/speed glyphs read a touch high against the slider track;
+ // nudge the pair down a point to sit centred on it.
+ .offset(y: 1)
.animation(.spring(response: 0.34, dampingFraction: 0.62), value: replay.isPlaybackActive)
}