From 0c7bcfb65b461ec0de5eccfb0cbc865e00a96d0b Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Thu, 10 Dec 2015 20:40:27 +0100 Subject: [PATCH] Limit the heading to one line for desktop clients Provide the full title using the title attribute (will be shown by on mouse over for desktop browsers). --- assets/css/app.css | 6 ++++++ templates/item.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/assets/css/app.css b/assets/css/app.css index 9333261..5df0e10 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -857,6 +857,12 @@ html[dir="rtl"] span.items-count:before { .hide-desktop { display: none; } + + .items h2 { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + } } /* mobile design */ diff --git a/templates/item.php b/templates/item.php index f4e1d0d..40cf7db 100644 --- a/templates/item.php +++ b/templates/item.php @@ -14,11 +14,13 @@ + title="" >