TPAC: Remove explicit width on "View my list" button
authorDan Scott <dscott@laurentian.ca>
Sat, 4 Aug 2012 15:24:15 +0000 (11:24 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 Aug 2012 01:21:49 +0000 (21:21 -0400)
.cached_list_div, which defines the style for the "View my list" button
on the TPAC button bar once an item has been added to a temporary list,
is given an explicit width of 111px, which is problematic for a number
of reasons:

1. If the font-size of the base style is increased, then the text will
   likely wrap.
2. Translations tend to be longer than English, and indeed in fr-CA
   "Afficher ma liste" ends up wrapping onto a second line, which makes
   the button bar look weird.

Accordingly, remove the explicit "width:111px" from the style definition
for .cached_list_div.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>

Open-ILS/src/templates/opac/css/style.css.tt2

index 07300f8..7aef348 100644 (file)
@@ -593,7 +593,7 @@ div.format_icon {
     padding-top:6px;
 }
 
-.cached_list_div { width: 111px; height: 25px; }
+.cached_list_div { height: 25px; }
 
 .results_header_div {
     float: left;