-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Overview
I'm embedding the widget in my Svelte site. The widget seems to initially be the correct size then it re-renders to the incorrect size (thinks it's fullscreen but not).
It will then re-size to the correct size if I manually resize my screen but otherwise is incorrect.
What I expect to happen
- Widget should be able to inherit the correct width from whatever div it gets loaded into
What actually happens
- Widget seems to load in with incorrect size -> I can track this down to size="hide"
- If I resize the screen then it will change itself to size="sm" which seems to fix the problem
Repro
How to repro:
- It's currently live here: https://hamy.xyz/blog/2022-10-taking-climate-clock-action
You can also repro in svelte repl:
Code:
<div style="width: 440px">
<script src="https://climateclock.world/widget-v2.js" async></script>
<climate-clock />
</div>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
