From: Tim Düsterhus Date: Wed, 19 Jul 2017 15:59:43 +0000 (+0200) Subject: Use smaller avatars in email notifications X-Git-Tag: 3.1.0_Alpha_1~240 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=541bbe3a1a6803b3251eb779bdef3e63259854af;p=GitHub%2FWoltLab%2FWCF.git Use smaller avatars in email notifications Closes WoltLab/WCF#2196 --- diff --git a/com.woltlab.wcf/templates/email_html.tpl b/com.woltlab.wcf/templates/email_html.tpl index c3894fa59b..90cfc6c8d7 100644 --- a/com.woltlab.wcf/templates/email_html.tpl +++ b/com.woltlab.wcf/templates/email_html.tpl @@ -102,6 +102,26 @@ padding-left: 15px; } + .box48 { + border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; + border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; + padding: 12px; + } + + .box48 td.boxContent { + padding-left: 12px; + } + + .box32 { + border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; + border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; + padding: 10px; + } + + .box32 td.boxContent { + padding-left: 10px; + } + .containerHeadline h3 { margin: 0; padding: 0; diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl index 2e5a8f1394..15658a7738 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'} diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl index e5522f7513..37675dc1d1 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl b/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl index 6ba0f6c0f1..49f8b8f332 100644 --- a/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl +++ b/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl @@ -7,8 +7,8 @@ {lang}wcf.user.notification.follow.mail.html{/lang} {assign var='user' value=$event->getAuthor()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='userContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl b/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl index aeedccd625..07866879a9 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl index 83e166a4e6..4cd7492862 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl index a0b28ee6d4..5874fefdfd 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}