Files
John Molakvoæ 24ee183e80 fix(mail): drop the page margin around emails on phones
On narrow screens the card now fills the screen without the page
margin, so the colored header sits at the top. Tests now also pin
where notes go: before the details card for shares, after it for
calendar events and the email changed mail.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
2026-10-08 15:00:12 +02:00

95 lines
11 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" style="-webkit-font-smoothing:antialiased">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<title></title>
<style type="text/css">
:root{color-scheme:light dark;supported-color-schemes:light dark}
body{margin:0;padding:0;width:100%!important}
@media only screen and (max-width:640px){
.nc-page-pad{padding:0!important}
.nc-card{border-radius:0!important;width:100%!important}
.nc-pad{padding-left:20px!important;padding-right:20px!important}
.nc-button{display:block!important;margin:0 0 12px 0!important}
}
@media (prefers-color-scheme:dark){
.nc-page{background:#181818!important}
.nc-card{background:#222222!important}
.nc-text{color:#ebebeb!important}
.nc-muted{color:#a6a6a6!important}
.nc-link{color:#ebebeb!important}
.nc-border{border-color:#3b3b3b!important}
.nc-note-neutral,.nc-secondary{background:#2c2c2c!important}
.nc-note-info{background:#003553!important;border-left-color:#00AEFF!important}
.nc-note-warning{background:#3D3010!important;border-left-color:#FFEEC5!important}
.nc-note-error{background:#552121!important;border-left-color:#FFCCCC!important}
}
</style>
</head>
<body class="nc-page" style="-moz-box-sizing:border-box;-ms-text-size-adjust:100%;-webkit-box-sizing:border-box;-webkit-text-size-adjust:100%;Margin:0;background:#f4f4f5;box-sizing:border-box;margin:0;min-width:100%;padding:0;width:100%!important">
<table role="presentation" class="nc-page" width="100%" cellpadding="0" cellspacing="0" style="background:#f4f4f5;border-collapse:collapse;border-spacing:0;width:100%">
<tr>
<td class="nc-page-pad" align="center" style="padding:32px 0">
<table role="presentation" class="nc-card" width="600" cellpadding="0" cellspacing="0" style="background:#ffffff;border-collapse:separate;border-radius:16px;border-spacing:0;max-width:600px;overflow:hidden;text-align:left;width:600px"> <tr>
<td class="nc-pad" style="background:#0082c9;padding:24px 36px">
<img class="logo" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" width="252" height="120" style="-ms-interpolation-mode:bicubic;border:none;display:block;max-height:48px;max-width:200px;outline:0;text-decoration:none;width:auto">
</td>
</tr> <tr>
<td class="nc-pad" style="padding:32px 36px 0">
<table role="presentation" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0">
<tr>
<td style="padding:0;vertical-align:middle;width:44px"><div style="background:#0082c9;border-radius:50%;color:#ffffff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:700;height:44px;line-height:44px;text-align:center;width:44px">AM</div></td>
<td class="nc-text" style="color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.4;padding:0 0 0 14px;vertical-align:middle"><strong>Alice Martin</strong><br><span class="nc-muted" style="color:#767676;font-size:14px">alice.martin@example.org</span></td>
</tr>
</table>
</td>
</tr> <tr>
<td class="nc-pad" style="padding:32px 36px 8px">
<h1 class="nc-text" style="Margin:0;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:24px;font-weight:700;line-height:1.3;margin:0">Alice Martin invited you to an event</h1>
</td>
</tr> <tr>
<td class="nc-pad" style="padding:16px 36px 12px"> <table role="presentation" class="nc-border" width="100%" cellpadding="0" cellspacing="0" style="Margin:0 0 20px;border:1px solid #e5e5e5;border-collapse:separate;border-radius:12px;border-spacing:0;margin:0 0 20px;width:100%">
<tr>
<td class="nc-border" colspan="2" style="border-bottom:1px solid #e5e5e5;padding:20px">
<table role="presentation" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0">
<tr>
<td style="padding:0 16px 0 0;vertical-align:middle"><table role="presentation" class="nc-border" cellpadding="0" cellspacing="0" style="border:1px solid #e5e5e5;border-collapse:separate;border-radius:8px;border-spacing:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;text-align:center;width:52px">
<tr><td style="background:#0082c9;border-radius:7px 7px 0 0;color:#ffffff;font-size:11px;font-weight:700;letter-spacing:1px;padding:3px 0;text-transform:uppercase">Oct</td></tr>
<tr><td class="nc-text" style="color:#222222;font-size:22px;font-weight:700;padding:4px 0 6px">15</td></tr>
</table></td><td class="nc-text" style="color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.4;padding:0;vertical-align:middle"><strong style="font-size:18px">Q3 board review</strong><br><span class="nc-muted" style="color:#767676;font-size:14px">Thursday, October 15, 2026</span></td>
</tr>
</table>
</td>
</tr> <tr>
<td class="nc-border nc-muted" style="color:#767676;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px;vertical-align:top;width:30%">When</td>
<td class="nc-border nc-text" style="color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px 12px 0;vertical-align:top">14:00 - 15:30 (Europe/Berlin)</td>
</tr> <tr>
<td class="nc-border nc-muted" style="border-top:1px solid #e5e5e5;color:#767676;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px;vertical-align:top;width:30%">Where</td>
<td class="nc-border nc-text" style="border-top:1px solid #e5e5e5;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px 12px 0;vertical-align:top">Meeting room 2<br><a class="nc-link" href="https://example.org/call/abc?x=1&amp;y=2" style="color:#0082c9">Join in Nextcloud Talk</a></td>
</tr> <tr>
<td class="nc-border nc-muted" style="border-top:1px solid #e5e5e5;color:#767676;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px;vertical-align:top;width:30%">Attendees</td>
<td class="nc-border nc-text" style="border-top:1px solid #e5e5e5;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:12px 20px 12px 0;vertical-align:top">Alice Martin (organizer)<br>You<br><span class="nc-muted" style="color:#767676">and 3 others</span></td>
</tr> </table> <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="Margin:0 0 20px;border-collapse:separate;border-spacing:0;margin:0 0 20px;width:100%">
<tr>
<td class="nc-note-neutral nc-text" style="background:#f4f4f5;border-left:4px solid transparent;border-radius:4px;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:16px 20px"><span class="nc-muted" style="color:#767676;font-size:14px">Description</span><br>We&#039;ll go through the Q3 numbers.<br/>Please review the report beforehand.</td>
</tr>
</table> <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="Margin:0 0 20px;border-collapse:separate;border-spacing:0;margin:0 0 20px;width:100%">
<tr>
<td class="nc-note-warning nc-text" style="background:#FFEEC5;border-left:4px solid #664700;border-radius:4px;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:1.5;padding:16px 20px"><strong>This share is password protected.</strong> The password is sent in a separate email.</td>
</tr>
</table> <p class="nc-text" style="Margin:8px 0 12px;color:#222222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.4;margin:8px 0 12px">Will you attend?</p><table role="presentation" cellpadding="0" cellspacing="0" style="Margin:8px 0 20px;border-collapse:collapse;border-spacing:0;margin:8px 0 20px">
<tr>
<td><a class="nc-button" href="https://example.org/invitation/accept" style="background:#0082c9;border:1px solid #0082c9;border-radius:8px;color:#ffffff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.2;margin:0 12px 12px 0;padding:13px 24px;text-align:center;text-decoration:none">Accept</a><a class="nc-button nc-secondary nc-border nc-text" href="https://example.org/invitation/tentative" style="background:#ffffff;border:1px solid #d1d1d1;border-radius:8px;color:#222222;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.2;margin:0 12px 12px 0;padding:13px 24px;text-align:center;text-decoration:none">Maybe</a><a class="nc-button nc-secondary nc-border nc-text" href="https://example.org/invitation/decline" style="background:#ffffff;border:1px solid #d1d1d1;border-radius:8px;color:#222222;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.2;margin:0 12px 12px 0;padding:13px 24px;text-align:center;text-decoration:none">Decline</a> </td>
</tr>
</table> </td>
</tr> <tr>
<td class="nc-pad nc-border nc-muted" style="border-top:1px solid #e5e5e5;color:#767676;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:13px;line-height:1.6;padding:24px 36px 32px">TestCloud - A safe home for your data</td>
</tr> </table>
</td>
</tr>
</table>
</body>
</html>