Skip to content

Commit

Permalink
feat: makes sidebar taller
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgerojas26 committed Sep 7, 2024
1 parent 2085cd9 commit 3c68acb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/ResultsTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -1278,11 +1278,14 @@ func (table *ResultsTable) UpdateSidebar() {
selectedRow, _ := table.GetSelection()

if selectedRow > 0 {
tableX, tableY, tableWidth, tableHeight := table.GetInnerRect()
tableX, _, _, tableHeight := table.GetRect()
_, _, tableInnerWidth, _ := table.GetInnerRect()
_, tableMenuY, _, tableMenuHeight := table.Menu.GetRect()
_, _, _, tableFilterHeight := table.Filter.GetRect()

sidebarWidth := (tableWidth / 3)
sidebarWidth := (tableInnerWidth / 3)

table.Sidebar.SetRect(tableX+tableWidth-sidebarWidth, tableY, sidebarWidth, tableHeight)
table.Sidebar.SetRect(tableX+tableInnerWidth-sidebarWidth, tableMenuY, sidebarWidth, tableHeight+tableMenuHeight+tableFilterHeight)
table.Sidebar.Clear()

for i := 0; i < columnCount; i++ {
Expand Down

0 comments on commit 3c68acb

Please sign in to comment.