Skip to content

Commit

Permalink
ui clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza committed Jan 8, 2024
1 parent d46e5c3 commit 48e112f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
28 changes: 14 additions & 14 deletions dist/light-entity-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/light-entity-card.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "light-entity-card",
"version": "6.1.2",
"version": "6.1.3",
"description": "A light-entity card for Home Assistant Lovelace UI",
"keywords": [
"home-assistant",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ class LightEntityCard extends ScopedRegistryHost(LitElement) {

return html`
<div class="control light-entity-card-center">
<ha-icon icon="hass:${this.config.temperature_icon}"></ha-icon>
<div class="icon-container">
<ha-icon icon="hass:${this.config.temperature_icon}"></ha-icon>
</div>
<ha-slider
class="light-entity-card-color_temp"
min="${stateObj.attributes.min_mireds}"
Expand Down
16 changes: 7 additions & 9 deletions src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const style = css`
}
.light-entity-card.group {
padding-bottom: 0;
padding-bottom: 5;
padding-top: 0;
}
Expand All @@ -25,7 +25,9 @@ const style = css`
.percent-slider {
color: var(--primary-text-color);
margin-top: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.light-entity-card__header {
Expand All @@ -34,11 +36,9 @@ const style = css`
@apply --paper-font-headline;
line-height: 40px;
color: var(--primary-text-color);
font-size: 24px;
}
.group .light-entity-card__header {
font-size: 16px;
}
.light-entity-card-sliders > div {
Expand Down Expand Up @@ -79,16 +79,14 @@ const style = css`
cursor: pointer;
}
.light-entity-card-toggle {
margin-right: 5px;
}
.hidden {
display: none;
}
.icon-container {
margin-top: 4px;
display: flex;
justify-content: center;
align-items: center;
}
`;

Expand Down

0 comments on commit 48e112f

Please sign in to comment.