Skip to content

Filter results css #105

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

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

KonradStanski
Copy link
Contributor

@KonradStanski KonradStanski commented Dec 2, 2024

This fixes a couple things which seemed to not be working with the filter results panel:

  1. It makes the filter result panel 100% of parent height, and set the repo filtering to be at max 50%. It then lets the language filter fill the remaining height.

  2. This fixes the repo display name text such that it does not split with long repo names onto multiple lines, instead showing an ellipsis and gracefully being cut off.
    It also puts the count into a box.

  3. It also adds cutoff for both search bars to display the number of languages/ repos matched, and cut them off at 100.
    In this case the text becomes 100+

  4. Do the same for the result counts but cut them off at 999. It makes the text 999+
    Before:

Screenshot 2024-12-02 at 8 14 33 PM

After:
Screenshot 2024-12-02 at 8 15 40 PM

Before:
Screenshot 2024-12-02 at 8 17 51 PM

After:
Screenshot 2024-12-02 at 8 18 17 PM

when the filter items were cutoff, the text would break onto multiple
lines and the count would overlap with the text
@brendan-kellam
Copy link
Contributor

Thank you! Could you paste in a before / after screenshot in your PR description?

@KonradStanski
Copy link
Contributor Author

Thank you! Could you paste in a before / after screenshot in your PR description?

Just did this.

@brendan-kellam brendan-kellam merged commit ce8232a into sourcebot-dev:main Dec 3, 2024
3 checks passed
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