prevent overflow

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

View File

@@ -60,23 +60,24 @@ struct AdditionalModifiersView: View {
#if DEBUG #if DEBUG
setupCard( setupCard(
presentation: .card, presentation: .card,
content: EnforceModeSetupContent( content:
settingsManager: settingsManager, EnforceModeSetupContent(
presentation: .card, settingsManager: settingsManager,
isTestModeActive: $isTestModeActive, presentation: .card,
cachedPreviewLayer: $cachedPreviewLayer, isTestModeActive: $isTestModeActive,
showAdvancedSettings: $showAdvancedSettings, cachedPreviewLayer: $cachedPreviewLayer,
showCalibrationWindow: $showCalibrationWindow, showAdvancedSettings: $showAdvancedSettings,
isViewActive: $isViewActive, showCalibrationWindow: $showCalibrationWindow,
isProcessingToggle: isProcessingToggle, isViewActive: $isViewActive,
handleEnforceModeToggle: { enabled in isProcessingToggle: isProcessingToggle,
if enabled { handleEnforceModeToggle: { enabled in
Task { @MainActor in if enabled {
try await cameraService.requestCameraAccess() Task { @MainActor in
try await cameraService.requestCameraAccess()
}
} }
} }
} ),
),
width: cardWidth, width: cardWidth,
height: cardHeight, height: cardHeight,
index: 0 index: 0
@@ -243,9 +244,11 @@ 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)
content ScrollView {
.padding(isCompact ? 12 : 20) content
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center) .padding(isCompact ? 12 : 20)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
} }
.frame(width: width, height: height) .frame(width: width, height: height)
.zIndex(zIndex(for: index)) .zIndex(zIndex(for: index))