From 92c511f4aaa156e5c943ef553645a066cfb8db9e Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 16 Jun 2025 14:51:29 +0200 Subject: =?UTF-8?q?erreur=20titre=20HTML=20trop=20long,=20images=20d=C3=A9?= =?UTF-8?q?form=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/body.css | 1 + src/model/entities/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/css/body.css b/public/css/body.css index 226e610..a2b099a 100644 --- a/public/css/body.css +++ b/public/css/body.css @@ -80,6 +80,7 @@ section > h3 { max-width: 300px; max-height: 200px; + object-fit: contain; } article { diff --git a/src/model/entities/Article.php b/src/model/entities/Article.php index ca1b074..14028ec 100644 --- a/src/model/entities/Article.php +++ b/src/model/entities/Article.php @@ -22,7 +22,7 @@ class Article #[ORM\Column(type: 'datetime', options: ['default' => 'CURRENT_TIMESTAMP'], unique: true)] private ?\DateTime $date_time; // le type datetime de doctrine convertit en type \DateTime de PHP - #[ORM\Column(type: "string")] + #[ORM\Column(type: "text")] // "string" => varchar(255) => risque HTML non valide private string $title; #[ORM\Column(type: "text")] -- cgit v1.2.3