Skip to content

Fix image scaling and align figcaption width to image #533

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

zihanKuang
Copy link
Contributor

This PR improves the rendering of images and captions within figure elements. It ensures that images retain their original dimensions and are no longer stretched beyond their natural size.

  1. By setting figure to max-content and applying width: auto with max-width constraints on images, captions now consistently align with the visual width of images.
  2. Unnecessary !important declarations were removed for cleaner and more maintainable styles.

zihanKuang added 2 commits May 5, 2025 12:40
Signed-off-by: Zihan Kuang <[email protected]>
Signed-off-by: Zihan Kuang <[email protected]>
Copy link

netlify bot commented May 5, 2025

Deploy Preview for bejewelled-pegasus-b0ce81 ready!

Name Link
🔨 Latest commit 4043264
🔍 Latest deploy log https://app.netlify.com/sites/bejewelled-pegasus-b0ce81/deploys/68189adf2485890008e54702
😎 Deploy Preview https://deploy-preview-533--bejewelled-pegasus-b0ce81.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 site configuration.

@zihanKuang zihanKuang added the area/docs Improvements or additions to documentation label May 5, 2025
@vishalvivekm
Copy link
Contributor

@zihanKuang
Thank you for your contribution!
Let's discuss this during the website call today at 7 AM CT.

Add it as an agenda item to the meeting minutes, if you would :)

@leecalcote leecalcote merged commit fe3cac6 into layer5io:master May 5, 2025
7 checks passed
@zihanKuang zihanKuang deleted the feature/image-fix branch May 12, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation component/cloud-docs component/kanvas-docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants