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 sections numberings #1228

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ItzNotABug
Copy link
Contributor

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.)

@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented Aug 18, 2024

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2024-08-22 11:37:59 CET

pnpm-lock.yaml Outdated Show resolved Hide resolved
src/lib/layouts/DocsArticle.svelte Show resolved Hide resolved
src/lib/layouts/DocsArticle.svelte Outdated Show resolved Hide resolved
Comment on lines +28 to +34
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'
);
})
Copy link
Contributor

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?

Copy link
Contributor Author

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.

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