Merge pull request #436 from alphagov/only-collapse-long-emails

Only collapse email templates if they’re long
This commit is contained in:
Chris Hill-Scott
2016-04-13 16:16:56 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,11 @@
this.start = function(component) {
this.$component = $(component)
this.$component = $(component);
if (this.$component.height() < this.$component.data('max-height')) return;
this.$component
.append(`
<div class='toggle' tabindex='0'>...<span class='visually-hidden'>show full email</span></div>
`)