Filter by audio format; apply filter changes live behind the dialog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -207,6 +207,17 @@ func (a *App) openModal(p tview.Primitive, width, height int) {
|
||||
a.pushOverlay(box, p, "↑↓ move · ←→ change · Enter select · Esc cancel", false, nil)
|
||||
}
|
||||
|
||||
// openSidePanel shows p at the top right so most of the view behind it stays
|
||||
// visible, for dialogs whose changes are applied live.
|
||||
func (a *App) openSidePanel(p tview.Primitive, width, height int, hints string) {
|
||||
box := tview.NewFlex().
|
||||
AddItem(nil, 0, 1, false).
|
||||
AddItem(tview.NewFlex().SetDirection(tview.FlexRow).
|
||||
AddItem(p, height, 0, true).
|
||||
AddItem(nil, 0, 1, false), width, 0, true)
|
||||
a.pushOverlay(box, p, hints, false, nil)
|
||||
}
|
||||
|
||||
// openFull shows p above the whole view area (the tab bar and status bar stay visible).
|
||||
func (a *App) openFull(p tview.Primitive, hints string, onClose func()) {
|
||||
a.pushOverlay(p, p, hints, true, onClose)
|
||||
|
||||
Reference in New Issue
Block a user