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

Make showcase expandable (re-open) #889

Merged
merged 6 commits into from
Jun 5, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented May 31, 2024

#878 was approved but merged prematurely. See that PR for reviews and other discussion.

Checklist

@victorlin victorlin self-assigned this May 31, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-victorlin--pfwtce May 31, 2024 18:09 Inactive
@victorlin victorlin force-pushed the victorlin/make-showcase-expandable branch from 13e8906 to 6ffd77c Compare May 31, 2024 22:53
@victorlin victorlin force-pushed the victorlin/list-resources-typing branch from f2e4113 to 9d7b112 Compare May 31, 2024 22:53
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--pfwtce May 31, 2024 22:53 Inactive
@victorlin victorlin force-pushed the victorlin/make-showcase-expandable branch from 6ffd77c to 117623b Compare May 31, 2024 23:07
@victorlin victorlin force-pushed the victorlin/list-resources-typing branch from 9d7b112 to 213995c Compare May 31, 2024 23:07
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--pfwtce May 31, 2024 23:07 Inactive
@victorlin victorlin force-pushed the victorlin/list-resources-typing branch from 7b24562 to adc666a Compare June 4, 2024 20:43
@victorlin victorlin force-pushed the victorlin/make-showcase-expandable branch from 117623b to 0b655ce Compare June 4, 2024 20:44
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--pfwtce June 4, 2024 20:44 Inactive
@victorlin victorlin force-pushed the victorlin/list-resources-typing branch 2 times, most recently from 2ad11e7 to aae874c Compare June 4, 2024 21:06
@victorlin victorlin force-pushed the victorlin/make-showcase-expandable branch from 0b655ce to 29dc6c6 Compare June 4, 2024 21:26
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--pfwtce June 4, 2024 21:26 Inactive
@victorlin victorlin force-pushed the victorlin/list-resources-typing branch from aae874c to 7c750e2 Compare June 5, 2024 18:14
Base automatically changed from victorlin/list-resources-typing to master June 5, 2024 18:27
Previously, the showcase would drop cards as the width decreases. This
is presumably to prevent the showcase from taking up too much height.
Instead of hiding the unused cards, allow them to be accessed by making
the showcase expandable.
This is the default behavior of justify-content so an alternative is to
simply remove the line, but better to be explicit.

Note: there is a gap on the right side of the cards because the
collection of cards can't be centered with this approach. There are
workarounds¹ that don't use flexbox, but keeping it like this for now.

¹ <https://stackoverflow.com/q/32802202>
This was only necessary to determine if the container is expandable,
which can be determined from the height alone (already used elsewhere).
@victorlin victorlin force-pushed the victorlin/make-showcase-expandable branch from 29dc6c6 to 0dc2c00 Compare June 5, 2024 18:33
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--pfwtce June 5, 2024 18:33 Inactive
@victorlin victorlin marked this pull request as ready for review June 5, 2024 18:40
@victorlin victorlin merged commit 2e4844e into master Jun 5, 2024
7 checks passed
@victorlin victorlin deleted the victorlin/make-showcase-expandable branch June 5, 2024 18:40
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