Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion inc/alert.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down