rss_converter_instagram.com.xsl: make images adapt to the viewer width
authorAntonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 16:05:29 +0000 (18:05 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 16:05:29 +0000 (18:05 +0200)
This way the user does not have to scroll horizontally to see the whole
picture.

rss_converter_instagram.com.xsl

index 7799a6e..633c8ef 100644 (file)
@@ -89,7 +89,7 @@
                     </xsl:if>
                     <xsl:value-of select="$item-content-caption"/>
                 </p><br />
                     </xsl:if>
                     <xsl:value-of select="$item-content-caption"/>
                 </p><br />
-                <a href="{$item-permalink}"><img src="{$item-content-image}" /></a>
+                <a href="{$item-permalink}"><img src="{$item-content-image}" style="max-width: 100%"/></a>
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>
             <xsl:if test="$generate-enclosure = 1">
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>
             <xsl:if test="$generate-enclosure = 1">