-
Notifications
You must be signed in to change notification settings - Fork 80
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
Resize landing page logos for better display #3243
Conversation
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.
LGTM. Thanks!
Do we understand how this "broke" before (was it an update to RTD styles or something)? Are all of the CSS changes here necessary? I'm just a bit worried about unintended consequences to changing global styling - but nothing stands out as being a problem in the rendered docs, so maybe its ok? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3243 +/- ##
=======================================
Coverage 88.62% 88.63%
=======================================
Files 125 125
Lines 18775 18779 +4
=======================================
+ Hits 16640 16644 +4
Misses 2135 2135 ☔ View full report in Codecov by Sentry. |
I checked all the other pages locally and found that it didn't affect them. Only CSS changes were made to scale the logo by 70% and to add a margin between the button and the logo. |
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.
Thanks!
.sd-card .sd-card-img-top { | ||
height: 52px; | ||
width: 52px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} |
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.
looks like :img-top
is no longer used anywhere ✅
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.
Yes
Hmm yeah, they looked completely different and even compatible with dark mode until v4.0 when rampviz was also added. |
pydata-sphinx-theme jump was only from 0.15.2 to 0.15.4 between those 2 releases. |
hmmm did something else change in the style or index page that broke the layout and background color on the image tiles? |
Hmm I don't see any CSS changes in v3.9.1...v4.0.0 |
Can we downgrade pydata-sphinx-theme to confirm that was the cause? We can also consider the remaining dark mode changes as a follow-up ticket since they are not introduced by this PR, and this PR greatly improve the layout! |
Downgrade (#3244) didn't help. |
Thanks for checking! I'd vote for merging this as-is and creating a follow-up ticket to track down and fix the dark support then. |
Wait |
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.
I have alt fix
I was comparing with what astropy did and might have alternate fix. Please hold. |
are the changes to width and removing img-top worth putting on top of #3245? |
Wow, there's been a lot happening since I last checked the chat. :) Maybe downgrading the sphinx-design or pydata-sphinx-theme could be the solution, as I didn't notice any CSS changes in the file itself. Instead of pinning the dependencies, should we focus on making our docs compatible with the latest versions? I'll test it out and report back here. |
What about https://jdaviz--3245.org.readthedocs.build/en/3245/ over at #3245 ? Sorry, I should have opened a PR here back when astropy was patched. The discussions here reminded me of that patch, so thanks! |
No, sorry. This PR is unnecessary with the other PR changes. |
Description
This pull request is to adjust the size of the logos on the landing page to improve appearance and ensure better visual alignment. Previously they were too large.
![image](https://private-user-images.githubusercontent.com/66814693/378942030-97ee306b-fdf8-464f-bb9c-692dc2a25f05.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mzg4MzUsIm5iZiI6MTczOTUzODUzNSwicGF0aCI6Ii82NjgxNDY5My8zNzg5NDIwMzAtOTdlZTMwNmItZmRmOC00NjRmLWJiOWMtNjkyZGMyYTI1ZjA1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDEzMDg1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3YzUyMGJhZDhmODUzNGQ4YmNjMjIyMTA4NzViZTJmZjBhOGE0ZWU1ZmZmYWMyZjE4OWFkNzBlYTVmNDJlOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EIK_5eMNc10-suryV27jh_4mM7lW9W4lqWavuRUlibw)
Before:
After: The rampviz logo in the video is a placeholder to demonstrate better for the outcome.
Screen.Recording.2024-10-22.at.12.54.28.PM.mov
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.