Skip to content

Asset page filtering#734

Merged
cart merged 3 commits intobevyengine:mainfrom
d-bucur:main
Aug 23, 2023
Merged

Asset page filtering#734
cart merged 3 commits intobevyengine:mainfrom
d-bucur:main

Conversation

@d-bucur
Copy link
Copy Markdown
Contributor

@d-bucur d-bucur commented Aug 22, 2023

WIP for Issue #450

I created a search bar that can filter cards in JS. The problem is that the cards are in a grid and when setting display:none it will leave around empty spaces. The only way I see to do it properly would be to change the display of the cards to flex-row instead of grid (which I think makes more sense for this layout anyway), but that requires quite a bit of work making sure everything is responsive and that there are no regressions.

image

Result when searching for "MIT"

image

Any thoughts on this?

Grid style cards still leave empty spaces though
@d-bucur
Copy link
Copy Markdown
Contributor Author

d-bucur commented Aug 22, 2023

Nevermind, setting display:none on grid elements does hide them properly, I was just doing it on the wrong element. So no need for big changes. Will update with images soon.

Correctly hides cards in grid and empty sections
@d-bucur
Copy link
Copy Markdown
Contributor Author

d-bucur commented Aug 22, 2023

And it's ready. Terms are separated by space and put in AND. Feedback welcome.

Screencast.from.22-08-2023.22.44.09.webm

@d-bucur d-bucur marked this pull request as ready for review August 22, 2023 20:48
Copy link
Copy Markdown
Member

@cart cart left a comment

Choose a reason for hiding this comment

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

This is a solid win. Well done!

@cart cart enabled auto-merge August 23, 2023 01:05
@cart
Copy link
Copy Markdown
Member

cart commented Aug 23, 2023

(I removed the submodule that you added)

@cart cart added this pull request to the merge queue Aug 23, 2023
Merged via the queue into bevyengine:main with commit 6c50953 Aug 23, 2023
@d-bucur
Copy link
Copy Markdown
Contributor Author

d-bucur commented Aug 23, 2023

Thanks! Didn't notice that submodule slip by

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