Skip to content

Commit

Permalink
fix: return back the pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgerojas26 committed Sep 23, 2024
1 parent ddd1022 commit fdd6e9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ResultsTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (table *ResultsTable) WithFilter() *ResultsTable {
table.Wrapper.AddItem(menu.Flex, 3, 0, false)
table.Wrapper.AddItem(filter.Flex, 3, 0, false)
table.Wrapper.AddItem(table, 0, 1, true)
table.Wrapper.AddItem(table.Pagination, 3, 0, false)

go table.subscribeToFilterChanges()

Expand Down Expand Up @@ -1326,9 +1327,10 @@ func (table *ResultsTable) UpdateSidebar() {
_, _, tableInnerWidth, _ := table.GetInnerRect()
_, tableMenuY, _, tableMenuHeight := table.Menu.GetRect()
_, _, _, tableFilterHeight := table.Filter.GetRect()
_, _, _, tablePaginationHeight := table.Pagination.GetRect()

sidebarWidth := (tableInnerWidth / 4)
sidebarHeight := tableHeight + tableMenuHeight + tableFilterHeight + 1
sidebarHeight := tableHeight + tableMenuHeight + tableFilterHeight + tablePaginationHeight + 1

table.Sidebar.SetRect(tableX+tableInnerWidth-sidebarWidth, tableMenuY, sidebarWidth, sidebarHeight)
table.Sidebar.Clear()
Expand Down

0 comments on commit fdd6e9b

Please sign in to comment.