[Rt-commit] r17837 - rt/3.8/trunk/share/html/NoAuth/css/web2

elacour at bestpractical.com elacour at bestpractical.com
Mon Jan 19 11:46:37 EST 2009


Author: elacour
Date: Mon Jan 19 11:46:36 2009
New Revision: 17837

Modified:
   rt/3.8/trunk/share/html/NoAuth/css/web2/msie6.css
   rt/3.8/trunk/share/html/NoAuth/css/web2/ticket.css

Log:
Try to fit transaction images to parent div in ticket history.

Works for Ie7/Firefox2/Firefox3/Safari. For Ie6, we set a fixed maximum of
400px.

Modified: rt/3.8/trunk/share/html/NoAuth/css/web2/msie6.css
==============================================================================
--- rt/3.8/trunk/share/html/NoAuth/css/web2/msie6.css	(original)
+++ rt/3.8/trunk/share/html/NoAuth/css/web2/msie6.css	Mon Jan 19 11:46:36 2009
@@ -74,3 +74,8 @@
     right: 0em;
 }
 
+.ticket-transaction .messagebody img {
+    /* ie6 does not support max-width */
+    width: expression(this.width > 401 ? 400 : true);
+}
+

Modified: rt/3.8/trunk/share/html/NoAuth/css/web2/ticket.css
==============================================================================
--- rt/3.8/trunk/share/html/NoAuth/css/web2/ticket.css	(original)
+++ rt/3.8/trunk/share/html/NoAuth/css/web2/ticket.css	Mon Jan 19 11:46:36 2009
@@ -128,6 +128,10 @@
  min-height: 2.5em;
 }
 
+.ticket-transaction .messagebody img {
+ max-width: 100%;
+}
+
 div#ticket-history div.downloadattachment {
 float: right;
 clear: both;


More information about the Rt-commit mailing list