fix: Fix issues where camera exceeded allowable width (#2096)

- Closes: #2073
This commit is contained in:
Dermot Duffy
2025-06-08 17:01:13 -07:00
committed by GitHub
parent 3b4752b257
commit 1bbc5be6fe
2 changed files with 14 additions and 6 deletions
+2
View File
@@ -30,5 +30,7 @@
justify-content: center;
height: 100%;
width: 100%;
flex: 0 0 100%;
}
+12 -6
View File
@@ -1,13 +1,17 @@
:host {
display: block;
// Keep carousel controls + unseekable icon relative to the media carousel
// itself.
position: relative;
--video-max-height: none;
transition: max-height 0.2s ease-in;
transition: max-height 0.1s ease-in-out;
// Keep carousel controls relative to the media carousel itself.
position: relative;
}
// When the carousel is not part of a grid ensure its height matches its
// container.
:host(:not([grid-id])) {
height: 100%;
}
// If the carousel has an unselected attribute set on it, do not let the
@@ -38,5 +42,7 @@
.embla__slide {
height: 100%;
width: 100%;
flex: 0 0 100%;
}