-
Notifications
You must be signed in to change notification settings - Fork 201
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 sections numberings #1228
base: main
Are you sure you want to change the base?
Fix sections numberings #1228
Conversation
The preview deployment is ready. 🟢 Open Preview | Open Build Logs Last updated at: 2024-08-22 11:37:59 CET |
574bf88
to
e3a6dc7
Compare
onMount(() => { | ||
// reduces size for articles using numbered sections. | ||
const slotWrapper = document.querySelector('.slot-wrapper'); | ||
reducedArticleSize = !!slotWrapper?.querySelector( | ||
'.web-article-content-section.is-with-line .web-numeric-badge' | ||
); | ||
}) |
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.
This still feels hacky. And what if they resize the window?
@TorstenDittmann, any ideas on how to best handle this?
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.
@stnguyen90 Works on resize. The issue only occurs at certain breakpoints which the css handles.
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)