Registry Mirror
Skip to content

More compact email notification design #49249

Open

Description

@helmo

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

I'd like to propose a more compact design for the email notifications that Nextcloud sends.

In my regular window size all relevant info is outside of the visible area. It feels a bit wasteful of the screen real estate. And I prefer to not have to scroll to be able to read the message content.

I'm no designer, but I've used my best Gimp skills to create a mockup of what I think would be an improvement.

(Moved from nextcloud/notifications#2101)

**Which Nextcloud Version are you currently using: 30.0.2

Describe the solution you'd like

Would be nice if the mail templates could be updated to have a more compact layout.

Describe alternatives you've considered

I could resize the window, but then it would be too big for most of the other mails.

Additional context
Add any other context or screenshots about the feature request here.

As it is now:
Image

As I'd like to see it:
Image

Activity

  1. added
    0. Needs triage
    on Nov 13, 2024
  2. kesselb commented on Nov 13, 2024

    @kesselb
    Contributor

    cc @nextcloud/designers

  3. helmo commented on Jun 21, 2026

    @helmo
    ContributorAuthor

    This still itched ... and forcing plain-text output for all mails was not desirable either.

    So I've made a patch for myself that skips the header (logo) and heading (Hello ) sections of the html.

    diff --git lib/private/Mail/EMailTemplate.php lib/private/Mail/EMailTemplate.php
    index 2e4d905cf44..7c24af0c6d9 100644
    --- lib/private/Mail/EMailTemplate.php
    +++ lib/private/Mail/EMailTemplate.php
    @@ -343,6 +343,8 @@ EOF;
             */
            #[\Override]
            public function addHeader(): void {
    +               return;
    +
                    if ($this->headerAdded) {
                            return;
                    }
    @@ -366,6 +368,8 @@ EOF;
             */
            #[\Override]
            public function addHeading(string $title, $plainTitle = ''): void {
    +               return;
    +
                    if ($this->footerAdded) {
                            return;
                    }

    And as a bonus I disabled the a calendar icon, to get rid of remote content warnings. (I know you can usually whitelist a domain to avoid these, but just NO. Mails should not depend on remote content, especially for things that have their own html code 🗓 🗓)

    diff --git apps/dav/lib/CalDAV/Reminder/Notifier.php apps/dav/lib/CalDAV/Reminder/Notifier.php
    index cefbc0ce548..2aa344aeac2 100644
    --- apps/dav/lib/CalDAV/Reminder/Notifier.php
    +++ apps/dav/lib/CalDAV/Reminder/Notifier.php
    @@ -99,9 +99,9 @@ class Notifier implements INotifier {
             * @return INotification
             */
            private function prepareReminderNotification(INotification $notification):INotification {
    -               $imagePath = $this->urlGenerator->imagePath('core', 'places/calendar.svg');
    -               $iconUrl = $this->urlGenerator->getAbsoluteURL($imagePath);
    -               $notification->setIcon($iconUrl);
    +               //$imagePath = $this->urlGenerator->imagePath('core', 'places/calendar.svg');
    +               //$iconUrl = $this->urlGenerator->getAbsoluteURL($imagePath);
    +               //$notification->setIcon($iconUrl);
     
                    $this->prepareNotificationSubject($notification);
                    $this->prepareNotificationMessage($notification);
    Image
  4. added
    design
    on Jul 25, 2026
  5. susnux commented on Dec 2, 2026

    @susnux
    Contributor

    Status update on current master:

    Done:

    Still missing:

    • The notification digest still starts with the logo bar, a "Hello …" heading and an intro sentence before the first notification; that part is defined by the Notifications app, where the digest email is built.
    • Notification icons are still loaded as remote images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagedesignenhancementfeature: activity and notificationfeature: emails

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions