From 426a28800256a46fd511a86521cba78dbecf619d Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 22:05:18 -0700 Subject: [PATCH] iPad portrait: give the scope strip its natural height so the legend doesn't overlap The header scope was clamped to the compact inline height (76pt) in both orientations; in the portrait full-width strip that clamp made the taller scope (legend + 120pt lanes) overflow upward into the Rigs/Pedals/Settings row. Clamp the height only for the inline landscape strip; portrait uses the natural height. Co-Authored-By: Claude Opus 4.8 --- .../LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 7ac2b27..ecddf0c 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -523,14 +523,20 @@ public struct ShoeGazeBuilderView: View { headerControlRows if !isPortrait { + // Inline: clamped to the compact header height (a short strip beside transport). headerScope - .frame(width: ShoeGazeBuilderView.compactHeaderScopeWidth) + .frame( + width: ShoeGazeBuilderView.compactHeaderScopeWidth, + height: ShoeGazeBuilderView.compactHeaderScopeHeight + ) } headerTransport } if isPortrait { + // Full-width strip at the scope's natural height (legend + lanes), so the legend + // doesn't overflow up into the panel row. headerScope .frame(maxWidth: .infinity) } @@ -561,11 +567,10 @@ public struct ShoeGazeBuilderView: View { .frame(maxWidth: .infinity, alignment: .leading) } - /// The oscilloscope, sized to the shared header height. Its width is set by the caller - /// (fixed inline in landscape, full-width strip in portrait). + /// The oscilloscope. The caller sizes it: a fixed short strip inline (landscape) or a + /// full-width strip at natural height (portrait). private var headerScope: some View { ShoeGazeScopeView(shoeGaze: shoeGaze) - .frame(height: ShoeGazeBuilderView.compactHeaderScopeHeight) } /// The Start / Stop over Record transport cluster (top-right in both orientations).