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

Joe Atzberger joe.atzberger at liblime.com
Wed Aug 12 19:27:56 CEST 2009


Nice technique.

On Wed, Aug 12, 2009 at 1:07 PM, Owen Leonard <oleonard at myacpl.org> wrote:

> 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
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



-- 
Joe Atzberger
LibLime - Open Source Library Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090812/ed8a63ff/attachment-0002.htm>


More information about the Koha-patches mailing list