mirror of
https://github.com/kalkih/mini-graph-card.git
synced 2025-12-20 00:35:56 +01:00
fix: padding fill (#1238)
This commit is contained in:
19
src/style.js
19
src/style.js
@@ -8,7 +8,7 @@ const style = css`
|
||||
ha-card {
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
padding: 16px 0;
|
||||
padding: 16px 0 0 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -18,6 +18,10 @@ const style = css`
|
||||
ha-card > div:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
ha-card .graph {
|
||||
padding: 0;
|
||||
order: 10;
|
||||
}
|
||||
ha-card[points] .line--points,
|
||||
ha-card[labels] .graph__labels.--primary {
|
||||
opacity: 0;
|
||||
@@ -34,26 +38,17 @@ const style = css`
|
||||
ha-card:hover .graph__labels.--secondary {
|
||||
opacity: 1;
|
||||
}
|
||||
ha-card[fill] {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
ha-card[fill] .graph {
|
||||
padding: 0;
|
||||
order: 10;
|
||||
}
|
||||
ha-card[fill] path {
|
||||
stroke-linecap: initial;
|
||||
stroke-linejoin: initial;
|
||||
}
|
||||
ha-card[fill] .graph__legend {
|
||||
ha-card .graph__legend {
|
||||
order: -1;
|
||||
padding: 0 16px 8px 16px;
|
||||
}
|
||||
ha-card[fill] .info {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
ha-card[group] {
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
ha-card[group] > div {
|
||||
|
||||
Reference in New Issue
Block a user