mirror of
https://github.com/MioMioOS/MioIsland
synced 2026-04-21 13:37:26 +00:00
fix: widen instances panel so tool preview + approval buttons don't clip
Active sessions with a tool call preview + inline approval buttons can render ~130pt tall, but the panel height used perSession=65 + baseHeight=100 which left only ~115pt of ScrollView area after header + bottom padding. The bottom row ended up under the buddy/stats overlay even though the ScrollView could technically scroll to it. Bumps to baseHeight=120 / perSession=100 — gives 1 session 220pt, 2 sessions 320pt, etc. Still capped by expandedMax so large session counts still fit inside 65% of screen height. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a547d43470
commit
38aad3be51
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ class NotchViewModel: ObservableObject {
|
|||
height: min(screenRect.height * 0.78, 780)
|
||||
)
|
||||
case .instances:
|
||||
let baseHeight: CGFloat = 100
|
||||
let perSession: CGFloat = 65
|
||||
let baseHeight: CGFloat = 120
|
||||
let perSession: CGFloat = 100
|
||||
let contentHeight = baseHeight + CGFloat(sessionCount) * perSession
|
||||
// ≤4 sessions: fit content + room for buddy; >4: capped unless expanded
|
||||
let compactMax: CGFloat = 360
|
||||
|
|
|
|||
Loading…
Reference in a new issue