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

⚡️ implement custom scrollable widget #173

Merged
merged 8 commits into from
Jul 29, 2024
Merged

Conversation

friedow
Copy link
Owner

@friedow friedow commented Jul 27, 2024

Since the iced scrollable widget renders all entries passed to it, we're experiencing degraded performance when plugins pass many entries to render. This is noticeable when using plugins like brave or firefox history with large history lists.

This PR removes the iced scrollable widget and instead creates a list of 10 enties which behave like a scrollable. This way we really only paint the 10 entries which are in the current viewport.

This fixes #157.

@friedow friedow self-assigned this Jul 27, 2024
Copy link
Collaborator

@a-kenji a-kenji left a comment

Choose a reason for hiding this comment

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

LGTM, tested. Seems to work well.

There is no scroll bar anymore, I guess that is intentional?

client/src/component/divider.rs Outdated Show resolved Hide resolved
client/src/component/entry.rs Outdated Show resolved Hide resolved
client/src/component/plugin_header.rs Outdated Show resolved Hide resolved
@friedow
Copy link
Owner Author

friedow commented Jul 29, 2024

Yep, scrollbar is not displayed intentionally. I think thats fine for now.

@friedow friedow merged commit 0889d01 into main Jul 29, 2024
1 check passed
@friedow friedow deleted the feat/paginated-output branch July 29, 2024 19:51
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.

firefox and brave plugins possibly show too many entries
2 participants