Skip to content

Conversation

@agriyakhetarpal
Copy link
Contributor

Brief description of what is fixed or changed

The comic shortcode currently applies a style to all images it is utilised on, so the "Contribute" pages also inherit a max-width: 20% rule, which downsizes the NumPy logo in the navbar. Additionally, the div that applies the comic class to the comic cover image was being foreclosed without including the comic cover image within itself, breaking the secondary sidebar as the HTML became syntactically invalid (for context, the secondary sidebar is visible on other pages, such as the "Community" and "About Us" pages). This PR corrects these issues. See the table below for a comparison.

Before After
image image

@netlify
Copy link

netlify bot commented Nov 30, 2025

Deploy Preview for numpy-org ready!

Name Link
🔨 Latest commit 79f806d
🔍 Latest deploy log https://app.netlify.com/projects/numpy-org/deploys/692badc33d2c450008b796de
😎 Deploy Preview https://deploy-preview-886--numpy-org.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

.comic {
.comic img {
max-width: 20%;
max-height: 20%;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are not changing the image's aspect ratio anywhere, so the max-height rule is unnecessary and has no effect. The max-width rule will handle the height automatically.

@mattip mattip merged commit 6362575 into numpy:main Nov 30, 2025
4 checks passed
@mattip
Copy link
Member

mattip commented Nov 30, 2025

Thanks @agriyakhetarpal. That whole top navbar looks like it could use some tweaking. There is white space between the logo and the left border, and more white space between the logo text and the menu items. But maybe that is a problem with the theme, and not NumPy specific, since https://scipy.org/community/ looks the same.

@agriyakhetarpal agriyakhetarpal deleted the fix/comic-img branch November 30, 2025 12:08
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