mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Trim overflowing cards (#2864)
* Trim overflowing cards * Fix picture-elements instead
This commit is contained in:
parent
8dba463dd4
commit
03d4a648f5
@ -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>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user