Skip to content

Commit

Permalink
Fixing mdi icon size in Home Assistant 0.110.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bessarabov committed May 21, 2020
1 parent 64e498c commit 9ce699a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions animated-consumption-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AnimatedConsumptionCard extends HTMLElement {
content.innerHTML = `
<style>
.acc_icon {
.acc_container {
height: 80px;
width: 80px;
border: 1px solid black;
Expand All @@ -87,6 +87,12 @@ class AnimatedConsumptionCard extends HTMLElement {
border-color: var(--primary-text-color);
}
.acc_icon {
--mdc-icon-size: 80px;
height: 80px;
width: 80px;
}
.acc_text_container {
position: relative;
left: 27px;
Expand All @@ -106,7 +112,7 @@ class AnimatedConsumptionCard extends HTMLElement {
<table style="border-collapse: collapse;" id='asdf'>
<tr>
<td class="acc_td">
<div>
<div class="acc_container">
<ha-icon class="acc_icon" icon="${ this.leftIcon }"></ha-icon>
</div>
</td>
Expand All @@ -125,7 +131,9 @@ class AnimatedConsumptionCard extends HTMLElement {
<td class="acc_td">
<div class="acc_icon_with_text">
<ha-icon class="acc_icon" icon="${ this.rightIcon }"></ha-icon>
<div class="acc_container">
<ha-icon class="acc_icon" icon="${ this.rightIcon }"></ha-icon>
</div>
<div class="acc_text_container">
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion development/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ha:
container_name: ha
image: homeassistant/raspberrypi3-homeassistant:0.107.4
image: homeassistant/raspberrypi3-homeassistant:0.110.0
ports:
- "8123:8123"
volumes:
Expand Down

0 comments on commit 9ce699a

Please sign in to comment.