Refactor thumbnail sizing.

This commit is contained in:
Dermot Duffy
2022-06-04 11:04:38 -07:00
parent c776758b5e
commit 42c8251c20
13 changed files with 104 additions and 61 deletions
+5 -2
View File
@@ -1,5 +1,3 @@
@use "const.scss";
:host {
display: flex;
flex-direction: row;
@@ -7,6 +5,11 @@
// Ensure control icons are relative to the thumbnail.
position: relative;
overflow: hidden;
}
:host(:not([details])) {
aspect-ratio: 1 / 1;
}
:host([details]) {