[Svn] r4505 - in trunk/roundcubemail: program/steps/mail skins/default

trac at roundcube.net trac at roundcube.net
Tue Feb 8 10:13:04 CET 2011


Author: alec
Date: 2011-02-08 03:13:04 -0600 (Tue, 08 Feb 2011)
New Revision: 4505

Modified:
   trunk/roundcubemail/program/steps/mail/func.inc
   trunk/roundcubemail/skins/default/mail.css
Log:
- Make so addcontact icon doesn't jump alone to next line


Modified: trunk/roundcubemail/program/steps/mail/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/func.inc	2011-02-08 08:19:18 UTC (rev 4504)
+++ trunk/roundcubemail/program/steps/mail/func.inc	2011-02-08 09:13:04 UTC (rev 4505)
@@ -1261,7 +1261,7 @@
     }
     else if (check_email($part['mailto'], false)) {
       if ($linked) {
-        $out .= html::a(array(
+        $address = html::a(array(
             'href' => 'mailto:'.$mailto,
             'onclick' => sprintf("return %s.command('compose','%s',this)", JS_OBJECT_NAME, JQ($mailto)),
             'title' => $mailto,
@@ -1270,12 +1270,12 @@
         Q($name ? $name : $mailto));
       }
       else {
-        $out .= html::span(array('title' => $mailto, 'class' => "rcmContactAddress"),
+        $address = html::span(array('title' => $mailto, 'class' => "rcmContactAddress"),
           Q($name ? $name : $mailto));
       }
 
       if ($addicon && $got_writable_abook) {
-        $out .= ' ' . html::a(array(
+        $address = '<span>' . $address . html::a(array(
             'href' => "#add",
             'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, urlencode($string)),
             'title' => rcube_label('addtoaddressbook'),
@@ -1283,8 +1283,9 @@
           html::img(array(
             'src' => $CONFIG['skin_path'] . $addicon,
             'alt' => "Add contact",
-          )));
+          ))) . '</span>';
       }
+      $out .= $address;
     }
     else {
       if ($name)

Modified: trunk/roundcubemail/skins/default/mail.css
===================================================================
--- trunk/roundcubemail/skins/default/mail.css	2011-02-08 08:19:18 UTC (rev 4504)
+++ trunk/roundcubemail/skins/default/mail.css	2011-02-08 09:13:04 UTC (rev 4505)
@@ -1046,6 +1046,11 @@
   font-weight: bold;
 }
 
+table.headers-table tr td.header span
+{
+  white-space: nowrap;
+}
+
 #attachment-list
 {
   margin: 0;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list