Replies: 1 comment
-
Someone else mentioned this before too, but I’m not sure how to reproduce it. Happy to take a look in a day or two if you can point me to a repository that has the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I when I add buttons on the map and run npm run preview they are all changing size or position.
If add the StandardControl to my map, and run npm run dev, I have the expected controls:
If I then run npm run build, npm run preview (and when I deploy on firebase), the preview has the buttons the width of the map:
![Screenshot from 2024-05-24 17-47-20](https://private-user-images.githubusercontent.com/3873524/333783486-f819366e-1fc2-426c-9f9a-feaf14401613.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNDA1OTIsIm5iZiI6MTcyMTE0MDI5MiwicGF0aCI6Ii8zODczNTI0LzMzMzc4MzQ4Ni1mODE5MzY2ZS0xZmMyLTQyNmMtOWY5YS1mZWFmMTQ0MDE2MTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTZUMTQzMTMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjZjYTEzZTFmNGM5YjFlMjk2N2M2MjIzZTQ3YmQ5YmJkMzM4YTMzYzM0YjRlNTAzZDVjZTM2MzhiMjEzN2Y5NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4FK44Q2I392DG9DUsb0PQImmYbyEGPKUuYtuPFJN4u8)
I have also tried to create my own button, which appears in the top-right of the screen. Again it looks correct when running npm run dev, but moves to the left on npm run preview
<Control position="top-right"> <FilterButton/> </Control>
Have you seen this behaviour before?
Beta Was this translation helpful? Give feedback.
All reactions