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).