changing sidebar member images to use contain instead of cover
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Nov 2017 18:38:02 +0000 (13:38 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Nov 2017 18:38:02 +0000 (13:38 -0500)
changing the background image property to use contain instead of cover

glm-member-db/views/front/members/list.html

index a78a98c..cc77774 100644 (file)
@@ -7,7 +7,7 @@
                     {$featuredImage = apply_filters('member_images',$member.id,true,"small")}
                     
                     {if $featuredImage}
-                        {$image = "style='height: 125px;width: 100%;background: url({$featuredImage})no-repeat center center;background-size: cover;'"}
+                        {$image = "style='height: 125px;width: 100%;background: url({$featuredImage})no-repeat center center;background-size: contain;'"}
                     {else}
                         {$image = "style='height: 125px;width: 100%;'"}
                     {/if}