From 5e3b2a642d7b4e641e940d4e45bfb4f99870c13c Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Sun, 22 Dec 2019 23:51:53 +0300 Subject: [PATCH] fix text overflow --- src/controllers/itemdetailpage.js | 6 +++--- src/css/librarybrowser.css | 10 ++++++---- src/itemdetails.html | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/controllers/itemdetailpage.js b/src/controllers/itemdetailpage.js index 8f68009572..de5d270c35 100644 --- a/src/controllers/itemdetailpage.js +++ b/src/controllers/itemdetailpage.js @@ -419,13 +419,13 @@ define(["loading", "appRouter", "layoutManager", "userSettings", "connectionMana var offset = parentNameLast ? ".25em" : ".5em"; if (html && !parentNameLast) { - html += '

' + name + '

'; + html += '

' + name + '

'; } else { - html = '

' + name + "

" + html; + html = '

' + name + "

" + html; } if (item.OriginalTitle && item.OriginalTitle != item.Name) { - html += '

' + item.OriginalTitle + '

'; + html += '

' + item.OriginalTitle + '

'; } container.innerHTML = html; diff --git a/src/css/librarybrowser.css b/src/css/librarybrowser.css index dacfa7c57b..9668eee20f 100644 --- a/src/css/librarybrowser.css +++ b/src/css/librarybrowser.css @@ -459,10 +459,14 @@ .infoWrapper { margin: 1.25em 0 0; - text-overflow: ellipsis; + flex: 1 0 0; +} + +.infoText { white-space: nowrap; overflow: hidden; - flex: 1 0 0; + text-overflow: ellipsis; + text-align: left; } .layout-tv .detailPagePrimaryContainer { @@ -613,8 +617,6 @@ } .infoWrapper { - text-overflow: initial; - white-space: normal; flex: initial; } } diff --git a/src/itemdetails.html b/src/itemdetails.html index 7c5009ec80..5216f1c4d3 100644 --- a/src/itemdetails.html +++ b/src/itemdetails.html @@ -12,7 +12,7 @@
-
+