From 7f6978ae9ee65a99fffb76f4d184d4e3804c6412 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 11 Dec 2025 12:11:34 +0100 Subject: [PATCH] fix: Prevent attachment gallery content from going out of bounds Closes #1349 --- .../components/attachments/Attachments/Item.module.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/components/attachments/Attachments/Item.module.scss b/client/src/components/attachments/Attachments/Item.module.scss index b1eddf10..64991fc5 100644 --- a/client/src/components/attachments/Attachments/Item.module.scss +++ b/client/src/components/attachments/Attachments/Item.module.scss @@ -8,6 +8,8 @@ bottom: 0; left: 0; margin: auto; + max-height: 90%; + max-width: 90%; position: absolute; right: 0; top: 0; @@ -19,11 +21,13 @@ } .contentError { + align-items: center; color: #fff; + display: flex; font-size: 20px; font-weight: bold; - height: 20px; + justify-content: center; + line-height: 1.2; text-align: center; - width: 470px; } }