From 5e667eb2647064677064855f7e6a2051caceb33d Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 14 Jan 2016 22:40:53 +0100 Subject: [PATCH] chat to ticket layout ref: style attachment --- .../views/layout_ref/chat_to_ticket.jst.eco | 33 ++++--------------- .../views/ticket_zoom/article_view.jst.eco | 2 +- app/assets/stylesheets/zammad.scss | 16 +++++++-- 3 files changed, 21 insertions(+), 30 deletions(-) diff --git a/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco b/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco index 1711d15d3..30b676bed 100644 --- a/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/chat_to_ticket.jst.eco @@ -1,7 +1,7 @@
@@ -85,32 +85,13 @@
-
-
-
- - select attachment.. - - -
-
-
-
- Uploading (0%) ... -
-
-
Cancel Upload -
-
-
+
+ <%- @Icon('paperclip') %> +
1 Attached File
+
+
Chat
+
-
-
- Drop Files here -
-
- -
diff --git a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco index 714ac349f..0b9f731c6 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco @@ -47,7 +47,7 @@
<% if !_.isEmpty( @article.attachments ): %> -
+
<%- @Icon('paperclip') %>
<%- @article.attachments.length %> <%- @T('Attached Files') %>
<% for attachment in @article.attachments: %> diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index fa60209c4..e0bdd1ad3 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -1456,6 +1456,15 @@ input.time.time--12 { background: none; } + .richtext.form-control .attachments.attachments--list:not(:empty) { + border-top: 1px solid rgba(0,0,0,.04); + white-space: normal; + margin: 0 -12px -14px; + padding: 25px 20px 7px 72px; + position: relative; + line-height: 1; + } + textarea.form-control { height: 118px; } @@ -4311,7 +4320,7 @@ footer { box-shadow: none; } - .ticket-article-item .attachments:not(:empty) { + .attachments.attachments--list:not(:empty) { border-top: 1px solid rgba(0,0,0,.04); white-space: normal; margin: 0 -20px; @@ -4319,7 +4328,7 @@ footer { position: relative; } - .ticket-article-item .attachments .attachments-title { + .attachments.attachments--list .attachments-title { font-size: 13px; color: hsl(60,1%,34%); font-weight: bold; @@ -4327,7 +4336,7 @@ footer { margin: 0 0 4px; } - .attachments .icon-paperclip { + .attachments .icon { position: absolute; left: 33px; top: 27px; @@ -5073,6 +5082,7 @@ footer { .box h1 { margin-top: 10px; + margin-bottom: 12px; color: hsl(60,1%,34%); flex: 1; }