From e01c5506e6ab55c52d4112c7b5e181fc95b5c57d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 3 Sep 2014 15:48:57 +0000 Subject: [PATCH] Work in progress of mail attachment box styling in compose and display dialogs --- mail/js/app.js | 2 ++ mail/templates/default/app.css | 14 +++++++++---- mail/templates/default/compose.xet | 33 ++++++++++++++---------------- mail/templates/default/display.xet | 8 +++----- mail/templates/pixelegg/app.css | 21 +++++++++++++------ mail/templates/pixelegg/app.less | 6 ++---- 6 files changed, 47 insertions(+), 37 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 1e630ecf2f..180bf1fbde 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3064,6 +3064,8 @@ app.classes.mail = AppJS.extend( var groupbox = boxAttachment.getParent(); if (groupbox) groupbox.set_disabled(false); } + //Resize the compose dialog + this.compose_resizeHandler(); return true; }, diff --git a/mail/templates/default/app.css b/mail/templates/default/app.css index 3d88c239ac..7507e18a58 100644 --- a/mail/templates/default/app.css +++ b/mail/templates/default/app.css @@ -181,7 +181,16 @@ A.sieveRowInActive .bodyDIVAttachment { bottom:80px; } - +table tr.attachmentRow > td{ + padding:0 !important; +} +table tr.attachmentRow > td > img { + background:transparent; + padding-left: 5px; +} +#mail-compose_attachments.egwGridView_grid { + display:table !important; +} #attachmentSpanAllDIV{ background-color:#efefdf; height:260px; @@ -275,11 +284,9 @@ pre { } .useEllipsis { text-overflow: ellipsis; - width: 250px; white-space: nowrap; overflow: hidden; word-wrap: break-word; - float: left; } #mail-index { position: relative @@ -540,7 +547,6 @@ div.mail-compose_fileselector { margin:0px; } .mailDisplayAttachments { - background-color:#f0f0f0; height: 121px; position: fixed; bottom: .1em; diff --git a/mail/templates/default/compose.xet b/mail/templates/default/compose.xet index 527a53e862..0846811e7b 100644 --- a/mail/templates/default/compose.xet +++ b/mail/templates/default/compose.xet @@ -116,25 +116,22 @@ - - - - - - - - - - - - - - -