Skip to content

Commit

Permalink
Added centering of image from video stream (#21155)
Browse files Browse the repository at this point in the history
  • Loading branch information
almirus committed Jul 16, 2024
1 parent f70126e commit c11d950
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/panels/lovelace/cards/hui-picture-entity-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,16 @@ class HuiPictureEntityCard extends LitElement implements LovelaceCard {
cursor: pointer;
height: 100%;
}
ha-camera-stream img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-height: 100%;
min-width: 100%;
}
.footer {
/* start paper-font-common-nowrap style */
white-space: nowrap;
Expand Down

0 comments on commit c11d950

Please sign in to comment.