fix: Camera aspect-ratio should always apply (#2114)

- Closes #2073
This commit is contained in:
Dermot Duffy
2025-07-13 14:56:03 -07:00
committed by GitHub
parent d0bfb97843
commit c3e7cef9cf
29 changed files with 812 additions and 201 deletions
+32
View File
@@ -0,0 +1,32 @@
@use 'media-background.scss';
:host {
display: flex;
position: relative;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
}
.container {
display: block;
// The container will be sized by the provider resize controller.
width: fit-content;
height: auto;
max-width: 100%;
}
:host([size='unsized']) > .container {
width: 100%;
height: 100%;
}
:host([size='unsized-portrait']) > .container {
height: 100%;
}
:host([size='unsized-landscape']) > .container {
width: 100%;
}