Refine transfer UX and active-pane selection rendering
This commit is contained in:
parent
5a5923099b
commit
874a5ed678
3 changed files with 5 additions and 16 deletions
|
|
@ -206,7 +206,8 @@ func renderPaneRows(pane BrowserPane, cfg config.Config, palette theme.Palette,
|
|||
lines := make([]string, 0, visibleHeight)
|
||||
for idx := pane.Offset; idx < end; idx++ {
|
||||
entry := pane.Entries[idx]
|
||||
row := renderEntryRow(entry, cfg, width, idx == pane.Cursor, idx == hoverIndex, active, palette, background)
|
||||
isSelected := idx == pane.Cursor && active
|
||||
row := renderEntryRow(entry, cfg, width, isSelected, idx == hoverIndex, active, palette, background)
|
||||
lines = append(lines, row)
|
||||
}
|
||||
for len(lines) < visibleHeight {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue