diff --git a/css/style.css b/css/style.css index 834e7505c..9fa182ded 100644 --- a/css/style.css +++ b/css/style.css @@ -1701,6 +1701,42 @@ ul.viewcontact_wrapper > li { } /* private mail */ +.mail-thread { + max-height: calc(100vh - 200px); +} +#mail-conversation { + overflow-y: auto; + max-height: calc(100vh - 400px); + max-height: auto; + /*height: 500px;*/ + margin-bottom: 0px; +} +#mail-conversation.can-reply { + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} +.mail-conv-wrapper .media .contact-photo-wrapper { + height: 48px; + width: 48px; +} +.mail-thread #prvmail-to-label, +.mail-thread #prvmail-subject-label { + display: none; +} +.mail-thread #prvmail-message-label > label { + display:none; +} +.mail-thread #prvmail-message-label textarea { + border-top: none; + margin-top: -10px; + border-top-left-radius: 0px; + border-top-right-radius: 0px; + max-height: 120px; +} +.mail-conv-wrapper { + padding: 15px; + border-bottom: 1px solid rgba(238, 238, 238, 0.95) +} #prvmail-end { clear:both; } diff --git a/templates/mail_conv.tpl b/templates/mail_conv.tpl new file mode 100644 index 000000000..dd091249a --- /dev/null +++ b/templates/mail_conv.tpl @@ -0,0 +1,21 @@ +
+
+
+ + {{$mail.from_name}} + +
+
+
{{$mail.date}}
+
+

{{$mail.from_name}}

+ +
+ {{$mail.body}} +
+ {{*× *}} +
+
+
+
+ diff --git a/templates/mail_display.tpl b/templates/mail_display.tpl new file mode 100644 index 000000000..fc8817dd3 --- /dev/null +++ b/templates/mail_display.tpl @@ -0,0 +1,19 @@ + +
+ {{$brauchenwas}} +

{{$thread_subject}}

+ +
+ {{foreach $mails as $mail}} + {{include file="mail_conv.tpl"}} + {{/foreach}} +
+ +
+ {{if $canreply}} + {{include file="prv_message.tpl"}} + {{else}} + {{$unknown_text}} + {{/if}} +
+
diff --git a/templates/mail_list.tpl b/templates/mail_list.tpl new file mode 100644 index 000000000..18a2acc96 --- /dev/null +++ b/templates/mail_list.tpl @@ -0,0 +1,30 @@ +
+ + + +
+
+ + {{$from_name}} + +
+
+
{{$ago}}
+ +
{{$from_name}}
+ +

{{$subject}}

+
+ × +

{{$count}}

+
+ +
+ + + +
+
+ +
+ diff --git a/templates/msg-header.tpl b/templates/msg-header.tpl index 304b2ec17..6645a4a74 100644 --- a/templates/msg-header.tpl +++ b/templates/msg-header.tpl @@ -55,6 +55,11 @@ else $("#comment-edit-text-input").bbco_autocomplete('bbcode'); {{/if}} + //var objDiv = document.getElementById("mail-conversation"); + //objDiv.scrollTop = objDiv.scrollHeight; + $('#mail-conversation').perfectScrollbar(); + $('#mail-conversation').scrollTop($('#mail-conversation')[0].scrollHeight); + }); diff --git a/templates/prv_message.tpl b/templates/prv_message.tpl index 82031291b..23f9dab2c 100644 --- a/templates/prv_message.tpl +++ b/templates/prv_message.tpl @@ -31,7 +31,7 @@ -