Add correct id to canvas element so engine recognises it#34
Add correct id to canvas element so engine recognises it#34stmio wants to merge 1 commit intotsparticles:mainfrom
Conversation
WalkthroughA single change was made to the Changes
Estimated code review effort1 (~2 minutes) Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The
<canvas>element inside<astro-particles>does not have any id, so the tsParticles engine does not detect it and creates a second one. This means that the canvas within the astro component is not configured (e.g. withfullScreen), and can push content down.PR adds the correct id to the canvas so a second is not created by the engine.