From 97c6c713a10e9c9a9e4e487465b9683c0d38583e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 10 May 2022 18:35:13 -0400 Subject: [PATCH] Convert width and height auto => 0 to auto=>auto. Add an auto-select for 5 wide when there are more than 5 and a multiple of 5 --- web/skins/classic/views/montage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/montage.php b/web/skins/classic/views/montage.php index f4f0f8e6f..d7020a6b2 100644 --- a/web/skins/classic/views/montage.php +++ b/web/skins/classic/views/montage.php @@ -138,7 +138,9 @@ foreach ($displayMonitors as &$row) { if (!$layout_id) { $default_layout = ''; if (!$default_layout) { - if ((count($monitors) > 4) and (count($monitors)%4 == 0)) { + if ((count($monitors) > 5) and (count($monitors)%5 == 0)) { + $default_layout = '5 Wide'; + } else if ((count($monitors) > 4) and (count($monitors)%4 == 0)) { $default_layout = '4 Wide'; } else if (count($monitors)%3 == 0) { $default_layout = '3 Wide';