Skip to content

Commit 40d2148

Browse files
Offset padding on macOS (ALD-20)
1 parent 89eb4d4 commit 40d2148

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MCMaps/Red Window/Views/Map/RedWindowMapView.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,21 @@ struct RedWindowMapView: View {
6363
IntegrationFetchStateView(state: state)
6464
.padding(8)
6565
.opacity(file.integrations.enabled ? 1 : 0)
66+
#if os(macOS)
67+
.padding(.bottom, 4)
68+
#endif
6669
}
6770
.overlay(alignment: .bottomTrailing) {
6871
LocationBadge(location: env.mapCenterCoordinate)
6972
.environment(\.contentTransitionAddsDrawingGroup, true)
7073
.labelStyle(.titleAndIcon)
74+
#if os(macOS)
75+
.padding(.bottom, 4)
76+
// NOTE(alicerunsonfedora): This applies the zoom control's width (36) with some extra padding,
77+
// but it's unclear how this will change over time, let alone whether this is the right way to
78+
// offset the badge to prevent obstructions (see ALD-20).
79+
.padding(.trailing, 48)
80+
#endif
7181
}
7282
.onChange(of: env.currentModalRoute, initial: false) { _, newValue in
7383
guard let newValue else { return }

0 commit comments

Comments
 (0)