From f6f8f6a922fddf1be8a2a2658438047a38dbe58a Mon Sep 17 00:00:00 2001 From: Jonathon Menz Date: Tue, 31 May 2016 19:36:32 -0700 Subject: [PATCH] Fix: max preview width for default image --- templates/ShareCarePreview.ss | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/templates/ShareCarePreview.ss b/templates/ShareCarePreview.ss index 1f99d5e..c39f3f6 100644 --- a/templates/ShareCarePreview.ss +++ b/templates/ShareCarePreview.ss @@ -14,9 +14,16 @@ margin: 0 30px 0 0; } .share-care-preview .message { - max-width:240px; + min-width: 200px; + max-width: 300px; color: #666; } + .share-care-preview img { + max-width: 100%; + max-height: 200px; + width: auto; + height: auto; + } .share-care-field div.message p:last-child { margin: 0; } @@ -43,8 +50,8 @@
<% if $OGImage %>

- <% if $OGImage.SetWidth(240) %> - $OGImage.SetWidth(240) + <% if $OGImage.SetWidth(300) %> + $OGImage.SetWidth(300) <% else %> <% end_if %> @@ -62,8 +69,8 @@

<% if $PinterestImage %>

- <% if $PinterestImage.SetWidth(240) %> - $PinterestImage.SetWidth(240) + <% if $PinterestImage.SetWidth(300) %> + $PinterestImage.SetWidth(300) <% else %> <% end_if %>