diff options
-rw-r--r-- | public/css/body.css | 1 | ||||
-rw-r--r-- | src/model/entities/Article.php | 2 |
2 files changed, 2 insertions, 1 deletions
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 | |||
80 | { | 80 | { |
81 | max-width: 300px; | 81 | max-width: 300px; |
82 | max-height: 200px; | 82 | max-height: 200px; |
83 | object-fit: contain; | ||
83 | } | 84 | } |
84 | article | 85 | article |
85 | { | 86 | { |
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 | |||
22 | #[ORM\Column(type: 'datetime', options: ['default' => 'CURRENT_TIMESTAMP'], unique: true)] | 22 | #[ORM\Column(type: 'datetime', options: ['default' => 'CURRENT_TIMESTAMP'], unique: true)] |
23 | private ?\DateTime $date_time; // le type datetime de doctrine convertit en type \DateTime de PHP | 23 | private ?\DateTime $date_time; // le type datetime de doctrine convertit en type \DateTime de PHP |
24 | 24 | ||
25 | #[ORM\Column(type: "string")] | 25 | #[ORM\Column(type: "text")] // "string" => varchar(255) => risque HTML non valide |
26 | private string $title; | 26 | private string $title; |
27 | 27 | ||
28 | #[ORM\Column(type: "text")] | 28 | #[ORM\Column(type: "text")] |