Open sastels opened 1 year ago
Instead of closing this issue, we could pull it back to the backlog and integrate it into the branding epic.
There is a problem to fix, where we have 2 different templates to generate the branding in a preview, and in the email. This should not happen: the preview should be reliable.
The bug is ocated in these 2 files, and we can work on fixing both files, and maybe simplify them once we know more about the branding requirements in our federal and provincial context. The current files follows branding standards from the UK, which are not relevant here. See this documentation in the same repo
The 2 problem files:
Jimmy Prince also experienced a similar problem, possibly the same problem, when adding a logo to a template
There are no width requirements for logos
I have attached the problematic logo from ticket https://cds-snc.freshdesk.com/a/tickets/15086
It is 108 pixels high.
The preview in Notify using the above logo showed a logo much too big.
I ended up resizing as follows for it to work:
But it was hard to find a width/height ratio that showed well in the preview.
@amazingphilippe and @andrewleith I believe this is now fixed with our release yesterday, correct?
No! This bug happens in a different place.
Describe the bug
Wide brandings (say, over 1100 x 108) are stretched vertically in the template preview. The emails use the correct aspect ratio.
Bug Severity
See examples in the documentation
SEV-3 Minor - everything works in the end, but service owners might not know that.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
image is not stretched
Impact
Screenshots
Branding here is 1149 × 108 pixels
Additional context
https://cds-snc.freshdesk.com/a/tickets/9524 https://cds-snc.freshdesk.com/a/tickets/9578