summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
45060bb)
Adapt images to the screen width to avoid horizontal scrolling in the
feed reader.
<xsl:attribute name="href">
<xsl:value-of select="concat(@data-image-url, ':orig')"/>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="concat(@data-image-url, ':orig')"/>
</xsl:attribute>
+ <img style="max-width: 100%">
<xsl:attribute name="src">
<xsl:value-of select="@data-image-url"/>
</xsl:attribute>
<xsl:attribute name="src">
<xsl:value-of select="@data-image-url"/>
</xsl:attribute>
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="style">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="style">
- <xsl:value-of select="concat(@style, '; background-repeat: no-repeat')"/>
+ <xsl:value-of select="concat(@style, '; background-repeat: no-repeat; background-size: 100% auto')"/>
</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>