Article Forum Symmetrical Grid Layout

Article Forum Symmetrical Grid Layout

@Paul B any update for 2.3.x on this, it's a big miss for making the article layout look great. With thanks :)
Seems to be fine with a small correction...
 
There was one anomaly where the fifth image was displaying a different size, I corrected this in the CSS file as the ratio was different from all the other images - I also added some additional CSS to give the 'Read Full Article >>' text a button like look - see below:

1728209316547.webp

The image ratio for the fifth image was set at 5/3 I changed this to reflect all the others to 4/3 which corrected the anomaly. I also altered the number of characters from 750 to 250 as my articles are short quick reads.
 
Setting default image codes were not respecting the image behaviour regarding size. So I did a bit changes and it worked.

Code:
<xf:if is="$thread.cover_image">
                <a href="{$linkUnread}" class="articlePreview-image" tabindex="-1">
                <img src="{$thread.cover_image}" alt="{$thread.title}" loading="lazy" />
                </a>
            <xf:elseif is="$forum.node_id == 77" />
                <a href="{$linkUnread}" class="articlePreview-image" tabindex="-1">
                <img src="{{ {$xf.options.boardUrl}.'/styles/isgtr/sunum/guncel_haberler.jpg' }}" alt="{$thread.title}" loading="lazy" />
                </a>
            </xf:if>

1761755271409.webp

3rd image was not fitting before.
 
Back
Top Bottom