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

🛠 fix: icon padding in menus #568

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

tomy0000000
Copy link
Contributor

The menu items with icons currently have a small spacing between the icon and the text, which is nice. However, the spacing exists because the rendered HTML has much spacing between the <span>s element, and this spacing will disappear when passing the --minify flag to hugo serve or hugo build commands, causing the icon to stick close to the text.

For example, see tomy0000000/blog#8

This PR removes all arbitrary spacing and adds a px-1 class to state the spacing explicitly.

@netlify
Copy link

netlify bot commented Jun 1, 2023

Deploy Preview for hugo-congo ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b67f0a7
🔍 Latest deploy log https://app.netlify.com/sites/hugo-congo/deploys/64787e06f4cee500084808d1
😎 Deploy Preview https://deploy-preview-568--hugo-congo.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 settings.

@jpanther
Copy link
Owner

jpanther commented Jun 2, 2023

Thanks for this fix, @tomy0000000. I'm happy to accept this PR and will merge it in now.

@jpanther jpanther merged commit c3cc7aa into jpanther:dev Jun 2, 2023
@tomy0000000 tomy0000000 deleted the fix-icon-padding branch June 3, 2023 07:57
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