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

automatically set the height of the tabs across the languages #1157

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

titusfortner
Copy link
Member

I was doing this manually before with "height" values. This is my attempt to do it automatically. @harsha1502 let me know if there's better JS for this. I'm not sure why docsy was doing $('#' + element.id).tab('show') and why I could only get it to work with click().

If this looks good, I'll PR it to Docsy as well and see what they think.

@netlify
Copy link

netlify bot commented Sep 5, 2022

Deploy Preview for jovial-austin-42fe02 ready!

Name Link
🔨 Latest commit 73e09e0
🔍 Latest deploy log https://app.netlify.com/sites/jovial-austin-42fe02/deploys/631621e9c6d89f0008d950d3
😎 Deploy Preview https://deploy-preview-1157--jovial-austin-42fe02.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.

@titusfortner
Copy link
Member Author

hmm, this doesn't work if a language isn't already set, so needs more tweaking.

@titusfortner titusfortner marked this pull request as draft September 5, 2022 05:05
@titusfortner titusfortner marked this pull request as ready for review September 5, 2022 16:11
@titusfortner
Copy link
Member Author

Ok, fixed the issue. Feedback appreciated.

@titusfortner
Copy link
Member Author

This had to get reverted because it doesn't consistently work for some reason.

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.

1 participant