Look at how we render @cli/src/tui/widgets/mysterious-message-modal.ts -- Problem is that the modal extends all the way to the top and bottom. I'd want a fixed max-height, like 20 lines or something. We already ahve other modals with fixed height, like our command palette or the handoff modal. Can you take a look at those to see how that works?
I also created a new tmux session, `test-modal`, in which you can run the CLI or test programs or whatever to see whether it works. I'd suggest creating a small standalone program (like @cli/src/tui/animated-supernova.run.ts) in which you show only the @cli/src/tui/widgets/mysterious-message-modal.ts, and then run that and make sure that it's only 20 lines max height and scrollable and so on
Fix modal height with max-height constraint
Thorsten
Ball • @mrnugget
11mo agoSign in to view attachments
Files and images attached to this public thread are only available to signed-in users.
Sign in