Shrink title space on mobile if needed (#21878)

* Shrink title space on mobile if needed

* Add multiline ellipsis

* Update src/layouts/hass-subpage.ts

Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>

---------

Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
Paul Bottein 2024-10-29 10:38:31 +01:00 committed by GitHub
parent 25e7c4f1b2
commit 5f58ac4fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {