The UI layout uses vw/vh units which are percentages of the viewport size of the whole web page. This doesn't work for the embedding use case of the JS library.
The layout is also relying on the current sizes of things outside the webcam view to define how the webcam view shrinks, which is fragile.
ResizeObserver could be used to make the layout more robust.
The UI layout uses
vw
/vh
units which are percentages of the viewport size of the whole web page. This doesn't work for the embedding use case of the JS library.The layout is also relying on the current sizes of things outside the webcam view to define how the webcam view shrinks, which is fragile.
ResizeObserver
could be used to make the layout more robust.