From 18c02c15cc4160f4d40112f58f5bf41798478ebf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 19 Nov 2014 14:31:31 -0500 Subject: [PATCH] Bug 13302 - Use CSS3 ellipsis for email address in staff client patron sidebar Content-Type: text/plain; charset="utf-8" This patch replaces the email address text overflow solution implemented by Bug 3256 with a CSS3 technique: text-overflow: ellipsis https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow To test, apply the patch and clear your browser cache. Edit the primary email address of a patron so that it is very long. View that patron in the staff client (on the checkout or details page, for instance) and confirm that the email address is truncated with "..." Confirm that the link and the title attribute of the link contain the correct, full email address. --- .../intranet-tmpl/prog/en/css/staff-global.css | 15 +++++---------- koha-tmpl/intranet-tmpl/prog/img/elipsis.gif | Bin 51 -> 0 bytes 2 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/img/elipsis.gif diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index ab80d4c..8ee85c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1366,17 +1366,12 @@ h1#logo a { vertical-align: middle; } -li.email a { - display:block; - overflow:hidden; - width:13em; -} li.email { - background: #FFF url(../../img/elipsis.gif) right bottom no-repeat; - font-size : 87%; - overflow:hidden; - padding :0 10px 0 0; - width:13em; + font-size : 87%; + overflow: hidden; + text-overflow: ellipsis; + padding : 0 10px 0 0; + width: 15em; } .empty { diff --git a/koha-tmpl/intranet-tmpl/prog/img/elipsis.gif b/koha-tmpl/intranet-tmpl/prog/img/elipsis.gif deleted file mode 100644 index 15ed1563d711f23e69e669c800a96921a0e0e1d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 51 zcmZ?wbhEHb