Skip to content

Commit

Permalink
Fixed too long entity name
Browse files Browse the repository at this point in the history
  • Loading branch information
berrywhite96 committed Oct 13, 2022
1 parent 55bab9c commit ed73214
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion shutter-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ div.card-row.first-row span.entity-name {
margin-left: 16px;
margin-right: 8px;
cursor: pointer;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex: 1 1;
}
div.card-row.first-row div.controls {
margin-left: auto;
Expand Down Expand Up @@ -436,7 +440,7 @@ class ShutterRow extends s {
<ha-icon-button
.label=${this.hass.localize("ui.dialogs.more_info_control.cover.stop_cover")}
.path="${mdiStop}"
.disabled="${moveStopDisabled()}"
.disabled=${moveStopDisabled()}
@dblclick="${this.onMoveStopDoubleClick}"
@pointerdown="${onHoldPointerDown}"
@pointerup="${this.onMoveStopPointerUp}">
Expand Down
2 changes: 1 addition & 1 deletion src/shutter-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class ShutterRow extends LitElement {
<ha-icon-button
.label=${this.hass.localize("ui.dialogs.more_info_control.cover.stop_cover")}
.path="${mdiStop}"
.disabled="${moveStopDisabled()}"
.disabled=${moveStopDisabled()}
@dblclick="${this.onMoveStopDoubleClick}"
@pointerdown="${onHoldPointerDown}"
@pointerup="${this.onMoveStopPointerUp}">
Expand Down
4 changes: 4 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ div.card-row.first-row span.entity-name {
margin-left: 16px;
margin-right: 8px;
cursor: pointer;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex: 1 1;
}
div.card-row.first-row div.controls {
margin-left: auto;
Expand Down

0 comments on commit ed73214

Please sign in to comment.