Skip to content

Commit d8abdde

Browse files
committed
Fix #110 Incompatibility with custom:grid-layout (plot grows out of the screen)
1 parent 1660db8 commit d8abdde

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotly-graph-card",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/plotly-graph-card.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ export class PlotlyGraph extends HTMLElement {
9797
<ha-card>
9898
<style>
9999
ha-card{
100-
height: 100%;
101100
overflow: hidden;
102101
background: transparent;
102+
width: 100%;
103+
height: calc(100% - 5px);
104+
}
105+
ha-card > #plotly{
106+
width: 100px;
103107
}
104108
ha-card > #title{
105109
text-align: center;

0 commit comments

Comments
 (0)