size fitting preview tests for the media events timeline

This commit is contained in:
Mauro Romito
2026-07-30 23:58:40 +02:00
committed by Mauro
parent e32c534b89
commit dbb14e0df4
10 changed files with 29 additions and 25 deletions
@@ -14,6 +14,7 @@ struct PreviewScrollView<Content: View>: View {
var content: () -> Content
var body: some View {
#if DEBUG
if ProcessInfo.isRunningTests {
content()
} else {
@@ -21,5 +22,10 @@ struct PreviewScrollView<Content: View>: View {
content()
}
}
#else
ScrollView {
content()
}
#endif
}
}