mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +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>
|
||||
#root {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.element {
|
||||
position: absolute;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
ha-card {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user