prevent overflow

This commit is contained in:
Michael Freno
2026-01-30 20:32:38 -05:00
parent 1e20283afc
commit 4bd80245cd

View File

@@ -60,7 +60,8 @@ struct AdditionalModifiersView: View {
#if DEBUG
setupCard(
presentation: .card,
content: EnforceModeSetupContent(
content:
EnforceModeSetupContent(
settingsManager: settingsManager,
presentation: .card,
isTestModeActive: $isTestModeActive,
@@ -243,8 +244,10 @@ struct AdditionalModifiersView: View {
.fill(Color(NSColor.windowBackgroundColor))
.shadow(color: Color.black.opacity(0.2), radius: 10, x: 0, y: 4)
ScrollView {
content
.padding(isCompact ? 12 : 20)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
}
.frame(width: width, height: height)