Skip to content
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

Move page controls to Panel subtitle #147

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ethansocal
Copy link
Contributor

This uses a new Rich 10.8.0 feature, so you may have to run poetry install again before running this branch.
Screen Shot 2021-09-02 at 9 17 33 PM

Copy link
Owner

@VagishVela VagishVela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple comments around stackoverflow. Rest looks good.

page.append_text(Text("<- Prev Page 0/0 Next ->"))
if i != len(contents) - 1:
page.append_text(Text("\n\n"))
page.append_text(Text("3cksjusdkcjsady"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we hardcode this? Or maybe generate something random programmitcally? Just feels weird to me. Also this is a Stackoverflow specific method, should it be in Stackoverflow parts of the code rather than here?

@@ -86,7 +89,7 @@ def check_overflow(contents: list[Text], console: Console, size: Size) -> bool:

output = "".join(output)

return "<- Prev Page 0/0 Next ->" not in output
return "3cksjusdkcjsady" not in output
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as comment on line 80.

@VagishVela
Copy link
Owner

@ethansocal Did you want to update this? I'll review it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants