-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tview ux #244
Fix tview ux #244
Conversation
…or before the port to tview
return nil | ||
} | ||
|
||
func (t *Tui) setupPagination() { | ||
t.aw.pagination = tview.NewTextView().SetText("1 / 10") | ||
t.aw.pagination = tview.NewTextView().SetText(fmt.Sprintf("%4d / %4d", 1, 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Porque se cambia el SetText("1 / 10")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave some comments.
@@ -112,6 +112,8 @@ func (t *Tui) setupQueries() { | |||
return event | |||
} | |||
|
|||
t.aw.pagination.SetText(fmt.Sprintf("%4d / %4d", 1, 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿Que significa estofmt.Sprintf("%4d / %4d", 1, 1)
, se setea un solo elemento? No sería más sinificativo si se colocan constantes o no vale la pena?
Description
I just realized that the ux was a little broken compared the previous behaviors before the ports.
Changes
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: