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