diff --git a/src/email.rs b/src/email.rs index 6de04c7..4ce3e7a 100644 --- a/src/email.rs +++ b/src/email.rs @@ -936,6 +936,19 @@ mod tests { "subject: {}", rendered.subject ); + // The download-link block must render as a prominent, selectable + // monospace code block that is not smaller than the 16px primary + // button (see issue #186). Pin a contiguous substring unique to the + // restyled `` (the primary button is `display:inline-block` and not + // monospace), so a font-size regression here genuinely fails — a bare + // `font-size:16px` check would pass on the button alone. + assert!( + rendered.html.contains( + "display:block;font-family:'Courier New',Consolas,Monaco,monospace;font-size:16px;" + ), + "download-link block should be a >=16px monospace code block: {}", + rendered.html + ); } #[test] diff --git a/templates/email/email.html b/templates/email/email.html index 0a0c87a..41f60ef 100644 --- a/templates/email/email.html +++ b/templates/email/email.html @@ -27,10 +27,8 @@ {{download_str}}
-

{{link_str}}

- - {{url}} - +

{{link_str}}

+ {{url}}
{% if confirm != "" %}