Fullscreen improvements (esp. portrait media)

This commit is contained in:
Dermot Duffy
2021-09-26 14:05:06 -07:00
parent 2ab4e064f4
commit 7c0e0133ee
6 changed files with 63 additions and 21 deletions
+6 -6
View File
@@ -2,19 +2,18 @@
position: relative;
overflow: auto;
height: 100%;
width: 100%;
margin: auto;
display: flex;
justify-content: center;
}
.frigate-card-contents {
width: 100%;
height: 100%;
margin: auto;
overflow: auto;
-ms-overflow-style: none; /* Hide scrollbar: IE and Edge */
scrollbar-width: none; /* Hide scrollbar: Firefox */
// Vertically align items in case the container is larger than the media (e.g.
// fullscreen mode, or forced aspect ratios).
display: flex;
align-items: center;
}
/* Hide scrollbar for Chrome, Safari and Opera */
@@ -61,6 +60,7 @@ ha-card a {
frigate-card-gallery, frigate-card-viewer, frigate-card-live {
width: 100%;
display: block;
}
frigate-card-gallery {
height: 100%;