Skip to content

Commit

Permalink
Fix issue Article width overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Feb 15, 2024
1 parent 85e303f commit f4a9e41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/elements/articles/articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@
$button_radius = $button_radius ? ' ' . $button_radius : '';

$has_gallery = false;
echo '<div class="'.($enable_slider ? 'astroid-slick overflow-hidden opacity-0' : $row_column_cls).$gutter_cls.$text_color_mode.'">';
echo '<div class="overflow-hidden">';
echo '<div class="'.($enable_slider ? 'astroid-slick opacity-0' : $row_column_cls).$gutter_cls.$text_color_mode.'">';
foreach ($items as $key => $item) {
$link = RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language);
$media = '';
Expand Down Expand Up @@ -311,6 +312,7 @@
echo '</div></div>';
}
echo '</div>';
echo '</div>';
$mainframe = Factory::getApplication();
$wa = $mainframe->getDocument()->getWebAssetManager();
if ($has_gallery) {
Expand Down

0 comments on commit f4a9e41

Please sign in to comment.