feat(mail): precise layout behaviour in mail template