diff --git a/src/layouts/hass-subpage.ts b/src/layouts/hass-subpage.ts index cabbeaf689ca..0cf5c81f07b0 100644 --- a/src/layouts/hass-subpage.ts +++ b/src/layouts/hass-subpage.ts @@ -125,7 +125,15 @@ class HassSubpage extends LitElement { .main-title { margin: var(--margin-title); line-height: 20px; + min-width: 0; flex-grow: 1; + overflow-wrap: break-word; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + padding-bottom: 1px; } .content {