Skip to content

Commit

Permalink
fix glitch effect on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
k1nho committed Sep 9, 2023
1 parent 6ee03ce commit b1289a1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/show/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ func (m DashboardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.WindowSizeMsg:
WindowSize = msg
width, _ := m.alumniContributorsTable.Width(), m.alumniContributorsTable.Height()
m.alumniContributorsTable.SetWidth(max(msg.Width-width, 5))
m.newContributorsTable.SetWidth(max(msg.Width-width, 5))

case ErrMsg:
fmt.Printf("Failed to retrieve contributors table data: %s", msg.err.Error())
Expand Down

0 comments on commit b1289a1

Please sign in to comment.