From 039dade2acc842b88b2c1be98a0bdc76a9efc2b4 Mon Sep 17 00:00:00 2001 From: Ghislain Loas <gloas@afi-sa.fr> Date: Wed, 2 Apr 2025 09:30:59 +0200 Subject: [PATCH] add missing test for upgrade_db 477 + add missing css for herisson --- .../Herisson/Assets/css/herisson.css | 31 ++++++++++--------- .../Intonation/Assets/css/intonation.css | 13 ++++++++ tests_db/UpgradeDBTest.php | 20 ++++++++++++ 3 files changed, 50 insertions(+), 14 deletions(-) diff --git a/library/templates/Herisson/Assets/css/herisson.css b/library/templates/Herisson/Assets/css/herisson.css index 3341b76775b..147c0ae7601 100644 --- a/library/templates/Herisson/Assets/css/herisson.css +++ b/library/templates/Herisson/Assets/css/herisson.css @@ -2120,21 +2120,24 @@ footer .leaflet-pane.leaflet-popup-pane { text-align: left !important; } } -/* -@media (min-width: 576px) { - body .card_grid { - grid-template-columns: repeat(auto-fill, minmax(145px, 18%)); - } + +.responsive_multiple_carousel.responsive_carousel_plus .responsive_multiple_carousel_md .card.card_template { + max-width: 310px; } -@media (min-width: 1200px) { - body .card_grid { - grid-template-columns: repeat(auto-fill, minmax(185px, 19%)); - } +.responsive_multiple_carousel.responsive_carousel .responsive_carousel_md .card.card_template { + max-width: 370px; } -@media (min-width: 1600px) { - body .card_grid { - grid-template-columns: repeat(auto-fill, minmax(250px, 19%)); - } -} */ +.highlight_carousel_xl .left_highlight_column .img_as_background .card-img.img-fluid { + max-height: 100% !important; + max-width: 100% !important; + height: auto !important; + width: 100% !important; +} + +.boite.news .highlight_carousel_xl .top_highlight_column .img_as_background .card-img.img-fluid, +.boite.calendar .highlight_carousel_xl .top_highlight_column .img_as_background .card-img.img-fluid{ + width: 100% !important; + height: 450px !important; +} diff --git a/library/templates/Intonation/Assets/css/intonation.css b/library/templates/Intonation/Assets/css/intonation.css index eab18117eb4..a2e687c1b0c 100644 --- a/library/templates/Intonation/Assets/css/intonation.css +++ b/library/templates/Intonation/Assets/css/intonation.css @@ -1284,3 +1284,16 @@ div.form_row_as_table:hover { border: none !important; box-shadow: none !important; } + +.highlight_carousel_xl .left_highlight_column .img_as_background .card-img.img-fluid { + max-height: 100%; + max-width: 100%; + height: auto; + width: 100%; +} + +.boite.news .highlight_carousel_xl .top_highlight_column .img_as_background .card-img.img-fluid, +.boite.calendar .highlight_carousel_xl .top_highlight_column .img_as_background .card-img.img-fluid{ + width: 100%; + height: 450px; +} diff --git a/tests_db/UpgradeDBTest.php b/tests_db/UpgradeDBTest.php index 2b2c2eac096..2c903e4fc79 100644 --- a/tests_db/UpgradeDBTest.php +++ b/tests_db/UpgradeDBTest.php @@ -6664,3 +6664,23 @@ class UpgradeDB_476_Test extends UpgradeDBTestCase $this->assertEquals('', $data[0]['rewrite_url']); } } + + + + +class UpgradeDB_477_Test extends UpgradeDBTestCase +{ + public function prepare() + { + try { + $this->query('DROP TABLE `statistics`'); + } catch (Exception $e) { + } + } + + /** @test */ + public function statisticsTableShouldBeCreated() + { + $this->assertTable('statistics'); + } +} -- GitLab