[FIX] mail: various ui improvements
- swap reply-to and mark-as-unread buttons in threads - remove blockquote from stripped html in channel previews - readd padding to no-content message in threads, also to no match found message - add 1 to chat window z-index to prevent control panel buttons to show through it
This commit is contained in:
@@ -134,7 +134,7 @@ function strip_html (node, transform_children) {
|
||||
function inline (node, transform_children) {
|
||||
if (node.nodeType === 3) return node.data;
|
||||
if (node.tagName === "BR") return " ";
|
||||
if (node.tagName.match(/^(A|P|DIV|PRE)$/)) return transform_children();
|
||||
if (node.tagName.match(/^(A|P|DIV|PRE|BLOCKQUOTE)$/)) return transform_children();
|
||||
node.innerHTML = transform_children();
|
||||
return node.outerHTML;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
background-color: @o-chat-window-bg;
|
||||
border: 1px solid gray;
|
||||
border-radius: 3px;
|
||||
z-index: 2;
|
||||
z-index: 3;
|
||||
|
||||
@media (max-width: @screen-xs-max) {
|
||||
width: 100%;
|
||||
|
||||
@@ -161,4 +161,8 @@
|
||||
margin-bottom: 20px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.o_mail_no_content {
|
||||
.o-webclient-padding();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
<t t-if="options.display_empty_channel">
|
||||
<t t-call="mail.EmptyChannel" />
|
||||
</t>
|
||||
<t t-if="options.display_no_match">
|
||||
<div t-if="options.display_no_match" class="o_mail_no_content">
|
||||
<div class="o_thread_title">No matches found</div>
|
||||
<div>No message matches your search. Try to change your search filters.</div>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<!-- When a channel is empty-->
|
||||
<div t-name="mail.EmptyChannel">
|
||||
<div t-name="mail.EmptyChannel" class="o_mail_no_content">
|
||||
<t t-if="options.channel_id==='channel_inbox'">
|
||||
<div class="o_thread_title">Congratulations, your inbox is empty</div>
|
||||
<div>New messages appear here.</div>
|
||||
@@ -100,12 +100,12 @@
|
||||
<i t-if="options.display_stars && !message.is_system_notification"
|
||||
t-att-class="'fa fa-lg o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')"
|
||||
t-att-data-message-id="message.id" title="Mark as Todo"/>
|
||||
<i t-if="message.is_needaction && options.display_needactions"
|
||||
class="fa fa-check o_thread_message_needaction"
|
||||
t-att-data-message-id="message.id" title="Mark as Read"/>
|
||||
<i t-if="message.record_name && message.model != 'mail.channel' && options.display_reply_icon"
|
||||
class="fa fa-reply o_thread_message_reply"
|
||||
t-att-data-message-id="message.id" title="Reply"/>
|
||||
<i t-if="message.is_needaction && options.display_needactions"
|
||||
class="fa fa-check o_thread_message_needaction"
|
||||
t-att-data-message-id="message.id" title="Mark as Read"/>
|
||||
</span>
|
||||
</p>
|
||||
<t t-if="message.tracking_value_ids && message.tracking_value_ids.length > 0">
|
||||
|
||||
Reference in New Issue
Block a user