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 <noreply@anthropic.com>
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user