Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update Space email notification assets

Anand Baburajan754b882aebd1
diff --git a/server/mail-templates/space_notification.html b/server/mail-templates/space_notification.html
index da90fac90c..34ba1759cc 100644
--- a/server/mail-templates/space_notification.html
+++ b/server/mail-templates/space_notification.html
@@ -53,6 +53,10 @@
padding: 30px;
}
+ .card-gutter {
+ padding: 0 20px;
+ }
+
img {
max-width: 100%;
height: auto;
@@ -84,6 +88,7 @@
<body>
<div class="gutter" style="padding: 18px">&nbsp;</div>
+<div class="card-gutter" style="padding: 0 20px;">
<div class="wrap" style=" background-color: rgb(255, 255, 255); padding: 34px
22px 22px; max-width: 320px; margin: 0 auto; border-radius: 32px;
font-size: 16px; color: #232323; " >
@@ -102,6 +107,7 @@
</div>
</main>
</div>
+</div>
<br />
<div class="footer" style="text-align: center; font-size: 12px; color:
rgb(136, 136, 136)" >
diff --git a/server/pkg/utils/email/space_notification_template_test.go b/server/pkg/utils/email/space_notification_template_test.go
index a1ec5e2b10..4bbdca2a4e 100644
--- a/server/pkg/utils/email/space_notification_template_test.go
+++ b/server/pkg/utils/email/space_notification_template_test.go
@@ -13,14 +13,15 @@ func TestSpaceNotificationTemplateCentersContent(t *testing.T) {
body, err := getMailBody("space_notification.html", map[string]interface{}{
"ActorLabel": "@alice",
"AppURL": "https://ente.space/app",
- "IllustrationURL": "https://email-assets.ente.com/space-new-post.svg",
+ "IllustrationURL": "https://email-assets.ente.com/space-new-post.png",
"IllustrationWidth": 112,
"Notification": "just posted a new photo",
})
require.NoError(t, err)
+ require.Contains(t, body, `<div class="card-gutter" style="padding: 0 20px;">`)
require.Contains(t, body, `<div style="text-align: center;">`)
require.Contains(t, body, "@alice")
require.Contains(t, body, "just posted a new photo")
- require.Contains(t, body, `https://email-assets.ente.com/space-new-post.svg`)
+ require.Contains(t, body, `https://email-assets.ente.com/space-new-post.png`)
require.Contains(t, body, `https://email-assets.ente.com/ente-2026-green.png`)
}
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.go
index c6aa540eaa..15e76b0b3c 100644
--- a/server/space/controller/notifications.go
+++ b/server/space/controller/notifications.go
@@ -12,10 +12,10 @@ import (
const (
spaceNotificationTemplate = "space_notification.html"
- spaceNewPostIllustrationURL = "https://email-assets.ente.com/space-new-post.svg"
- spaceNewPostLikeIllustrationURL = "https://email-assets.ente.com/space-new-post-like.svg"
- spaceNewPostReplyIllustrationURL = "https://email-assets.ente.com/space-new-post-reply.svg"
- spaceNewFriendIllustrationURL = "https://email-assets.ente.com/space-new-friend.svg"
+ spaceNewPostIllustrationURL = "https://email-assets.ente.com/space-new-post.png"
+ spaceNewPostLikeIllustrationURL = "https://email-assets.ente.com/space-new-post-like.png"
+ spaceNewPostReplyIllustrationURL = "https://email-assets.ente.com/space-new-post-reply.png"
+ spaceNewFriendIllustrationURL = "https://email-assets.ente.com/space-new-friend.png"
spaceNotificationPostCreated = "post_created"
spaceNotificationPostLiked = "post_liked"
spaceNotificationPostReplied = "post_replied"