-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
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.
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")) |
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.
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 |
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.
Same as comment on line 80.
@ethansocal Did you want to update this? I'll review it again. |
This uses a new Rich 10.8.0 feature, so you may have to run
poetry install
again before running this branch.