Add watermark to temporary image on live view.

This commit is contained in:
Dermot Duffy
2023-10-08 11:01:07 -07:00
parent 04aef8a449
commit de7d412c2d
7 changed files with 56 additions and 52 deletions
+14
View File
@@ -0,0 +1,14 @@
:host {
width: 100%;
height: 100%;
display: block;
position: relative;
}
ha-icon {
position: absolute;
top: 10px;
right: 10px;
opacity: 50%;
color: white;
}
+13 -2
View File
@@ -1,8 +1,9 @@
:host {
--paper-toast-background-color: rgba(0,0,0,0.6);
--paper-toast-background-color: rgba(0, 0, 0, 0.6);
--paper-toast-color: white;
pointer-events: none;
position: relative;
}
paper-toast {
@@ -10,9 +11,19 @@ paper-toast {
min-width: unset;
display: flex;
align-items: center;
// Without this the paper-toast will consume vertical space before being
// opened, which causes the card to render blank space needlessly. It also
// won't work with 'display: none', it appears to need something with
// width/height properties even before being opened.
position: absolute;
}
paper-toast.paper-toast-open {
position: relative;
}
paper-toast img {
max-height: 24px;
padding-left: 10px;
}
}