From 768091e09416cc071eee1224000f67fe6cae16ac Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 08 Feb 2011 04:13:04 -0500
Subject: [PATCH] - Make so addcontact icon doesn't jump alone to next line
---
skins/default/mail.css | 5 +++++
program/steps/mail/func.inc | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index fd00142..0ccc923 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -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)
diff --git a/skins/default/mail.css b/skins/default/mail.css
index 1eb82cb..0ac7aa0 100644
--- a/skins/default/mail.css
+++ b/skins/default/mail.css
@@ -1046,6 +1046,11 @@
font-weight: bold;
}
+table.headers-table tr td.header span
+{
+ white-space: nowrap;
+}
+
#attachment-list
{
margin: 0;
--
Gitblit v1.9.1