Trim overflowing cards (#2864)

* Trim overflowing cards

* Fix picture-elements instead
This commit is contained in:
Thomas Lovén 2019-02-28 23:30:43 +01:00 committed by Paulus Schoutsen
parent 8dba463dd4
commit 03d4a648f5

View File

@ -84,12 +84,14 @@ class HuiPictureElementsCard extends LitElement implements LovelaceCard {
<style> <style>
#root { #root {
position: relative; position: relative;
overflow: hidden;
} }
.element { .element {
position: absolute; position: absolute;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
ha-card {
overflow: hidden;
}
</style> </style>
`; `;
} }