Library: stack movies above series with details on the right; refresh SPECS keybindings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -171,7 +171,8 @@ type libPane struct {
|
||||
gen int // invalidates stale loads
|
||||
}
|
||||
|
||||
// libraryView shows the movies of Radarr and the series of Sonarr side by side.
|
||||
// libraryView shows the movies of Radarr above the series of Sonarr, with the
|
||||
// details of the selected item on the right.
|
||||
type libraryView struct {
|
||||
app *App
|
||||
radarr *radarr.Client
|
||||
@@ -197,7 +198,7 @@ func newLibraryView(app *App, r *radarr.Client, s *sonarr.Client) *libraryView {
|
||||
}
|
||||
v.details.SetBorder(true).SetTitle(" Details ")
|
||||
|
||||
lists := tview.NewFlex()
|
||||
lists := tview.NewFlex().SetDirection(tview.FlexRow) // movies above series
|
||||
for _, kind := range []libKind{kindMovies, kindSeries} {
|
||||
p := &libPane{kind: kind, table: tview.NewTable().SetSelectable(true, false).SetFixed(1, 0)}
|
||||
p.table.SetBorder(true)
|
||||
@@ -216,8 +217,9 @@ func newLibraryView(app *App, r *radarr.Client, s *sonarr.Client) *libraryView {
|
||||
v.root = tview.NewFlex().SetDirection(tview.FlexRow).
|
||||
AddItem(v.header, 1, 0, false).
|
||||
AddItem(v.input, 1, 0, false).
|
||||
AddItem(lists, 0, 3, true).
|
||||
AddItem(v.details, 0, 2, false)
|
||||
AddItem(tview.NewFlex().
|
||||
AddItem(lists, 0, 3, true).
|
||||
AddItem(v.details, 0, 2, false), 0, 1, true)
|
||||
|
||||
v.input.SetChangedFunc(func(string) { v.render() })
|
||||
v.input.SetDoneFunc(func(tcell.Key) { v.app.app.SetFocus(v.pane().table) })
|
||||
|
||||
Reference in New Issue
Block a user