diff --git a/shutter-row.js b/shutter-row.js index f1776e2..f913356 100644 --- a/shutter-row.js +++ b/shutter-row.js @@ -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; @@ -436,7 +440,7 @@ class ShutterRow extends s { diff --git a/src/shutter-row.js b/src/shutter-row.js index 7180097..448ab99 100644 --- a/src/shutter-row.js +++ b/src/shutter-row.js @@ -198,7 +198,7 @@ class ShutterRow extends LitElement { diff --git a/src/style.css b/src/style.css index c3cbaa8..7f6f50f 100644 --- a/src/style.css +++ b/src/style.css @@ -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;