It only happens when using @h5web/app as a library - i.e. when importing the viewer's styles from @h5web/app/styles.css (which points to packages/app/dist/styles.css), so there's a problem with how that file is generated. The problem doesn't occur in the demo, where styles are imported from their source - i.e. from packages/app/src/styles.css.
Describe the bug
Looks like #1589 caused a styling regression:
It only happens when using
@h5web/app
as a library - i.e. when importing the viewer's styles from@h5web/app/styles.css
(which points topackages/app/dist/styles.css
), so there's a problem with how that file is generated. The problem doesn't occur in the demo, where styles are imported from their source - i.e. frompackages/app/src/styles.css
.To Reproduce
https://codesandbox.io/p/devbox/h5webapp-vite-5c204