diff --git a/CHANGELOG.md b/CHANGELOG.md index 88935af..283e34b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed + +- Fix alert overflow on large login screens. + ## [1.13.0] - 2025-09-22 ### Added diff --git a/inc/alert.class.php b/inc/alert.class.php index 084e14c..60d11b6 100644 --- a/inc/alert.class.php +++ b/inc/alert.class.php @@ -602,8 +602,9 @@ public static function getSizeClasses(string $size): string public static function displayAlert($alert, $p) { $twig = TemplateRenderer::getInstance(); + $size = $p['show_only_login_alerts'] ? 'col-12' : self::getSizeClasses($alert['size']); $twig->display('@news/display_alert.html.twig', [ - 'size' => self::getSizeClasses($alert['size']), + 'size' => $size, 'alert_fields' => $alert, 'content' => $alert['message'], 'can_close' => $alert['is_close_allowed'] && !$p['show_hidden_alerts'],