[Koha-patches] [PATCH] Fix for Bug 3256, "Long email address cut off in patron windows"

Owen Leonard oleonard at myacpl.org
Wed Aug 12 19:07:08 CEST 2009


This fix tweaks the overflow settings for the email address and adds an image of an elipsis as the background, giving the appearance that the text is being truncated.
---
 .../intranet-tmpl/prog/en/css/staff-global.css     |   17 +++++++++++------
 koha-tmpl/intranet-tmpl/prog/img/elipsis.gif       |  Bin 0 -> 51 bytes
 2 files changed, 11 insertions(+), 6 deletions(-)
 create 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 cc354ce..41ba3e9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -1244,12 +1244,17 @@ h1#logo a {
 	font-size :  200%;
 }
 
-.email {
-font-size :  87%;
-width : 15em;
-margin: 0;
-padding: 0;
-overflow :  hidden;
+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;
 }
 
 .empty {
diff --git a/koha-tmpl/intranet-tmpl/prog/img/elipsis.gif b/koha-tmpl/intranet-tmpl/prog/img/elipsis.gif
new file mode 100644
index 0000000000000000000000000000000000000000..15ed1563d711f23e69e669c800a96921a0e0e1d2
GIT binary patch
literal 51
zcmZ?wbhEHb<YeGvXkcVuU^w&t|9{1wEI=kBgAR}n6z61MVB+fOUwQg%Lc)YRQ3h)O
DKQavY

literal 0
HcmV?d00001

-- 
1.5.6.5




More information about the Koha-patches mailing list