-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
MINOR: [Docs] Make cards on index page of docs responsive #38693
Conversation
I just pushed 8b4ab43 which makes the same change in the other places we have this issue. |
This looks great, didn't even know about it! =) |
@github-actions crossbow submit preview-docs |
Revision: 8b4ab43 Submitted crossbow builds: ursacomputing/crossbow @ actions-5f711a3fe6
|
Opened an issue for the docs build failure: #38711 |
@github-actions crossbow submit preview-docs |
Revision: 8b4ab43 Submitted crossbow builds: ursacomputing/crossbow @ actions-50427bf095
|
@github-actions crossbow submit preview-docs |
Revision: 8b4ab43 Submitted crossbow builds: ursacomputing/crossbow @ actions-5b59e37ad4
|
@amoeba could you rebase the PR please? The docs preview uses the code from this branch not from main as I previously thought. |
8b4ab43
to
2785703
Compare
I've rebased my branch. |
Thank you! |
@github-actions crossbow submit preview-docs |
Revision: 2785703 Submitted crossbow builds: ursacomputing/crossbow @ actions-e493b84531
|
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.
Checked the change on my mobile, looks great! Thank you again @amoeba !
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 8301eb5. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change The text inside the Specifications and Development cards in the docs get squished on mobile or small-viewport devices because their CSS grid definition isn't responsive. Example:  ### What changes are included in this PR? This changes this specific use of the [`grid-item`](https://sphinx-design.readthedocs.io/en/latest/grids.html) directive to take advantage of the responsive variant, > or four numbers for extra-small (<576px), small (768px), medium (992px) and large screens (>1200px), For the extra-small variant, the grid dynamically switches to a single-column which prevents squishing of the text inside the card. Otherwise a two-column grid is used. ### Are these changes tested? Yes, I built the docs in a local conda env and tested that the cards look right at all widths. At narrow widths, it looks like this:  ### Are there any user-facing changes? Just to docs, see above. Authored-by: Bryce Mecum <[email protected]> Signed-off-by: AlenkaF <[email protected]>
Rationale for this change
The text inside the Specifications and Development cards in the docs get squished on mobile or small-viewport devices because their CSS grid definition isn't responsive. Example:
What changes are included in this PR?
This changes this specific use of the
grid-item
directive to take advantage of the responsive variant,For the extra-small variant, the grid dynamically switches to a single-column which prevents squishing of the text inside the card. Otherwise a two-column grid is used.
Are these changes tested?
Yes, I built the docs in a local conda env and tested that the cards look right at all widths. At narrow widths, it looks like this:
Are there any user-facing changes?
Just to docs, see above.