From 83fb4f11fff89666765e7be4b9fc8bb5769bfafc Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 3 Nov 2022 10:07:14 +0100 Subject: [PATCH] (bug) switch display is broken --- .../src/javascript/components/form/form-image-upload.tsx | 5 ++++- .../src/stylesheets/modules/form/abstract-form-item.scss | 1 - app/frontend/src/stylesheets/modules/form/form-switch.scss | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/frontend/src/javascript/components/form/form-image-upload.tsx b/app/frontend/src/javascript/components/form/form-image-upload.tsx index 7ad69f01d..10c0db07b 100644 --- a/app/frontend/src/javascript/components/form/form-image-upload.tsx +++ b/app/frontend/src/javascript/components/form/form-image-upload.tsx @@ -92,7 +92,10 @@ export const FormImageUpload =
- {file?.attachment_name + {file?.attachment_name { + currentTarget.onerror = null; + currentTarget.src = noImage; + }} />
{mainOption && diff --git a/app/frontend/src/stylesheets/modules/form/abstract-form-item.scss b/app/frontend/src/stylesheets/modules/form/abstract-form-item.scss index 6a85c58f1..775fb4a2f 100644 --- a/app/frontend/src/stylesheets/modules/form/abstract-form-item.scss +++ b/app/frontend/src/stylesheets/modules/form/abstract-form-item.scss @@ -5,7 +5,6 @@ &-header { width: 100%; display: flex; - flex-wrap: wrap; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; diff --git a/app/frontend/src/stylesheets/modules/form/form-switch.scss b/app/frontend/src/stylesheets/modules/form/form-switch.scss index b772dd5ec..c191c8c32 100644 --- a/app/frontend/src/stylesheets/modules/form/form-switch.scss +++ b/app/frontend/src/stylesheets/modules/form/form-switch.scss @@ -13,7 +13,6 @@ .form-item-field { display: flex; - flex-wrap: wrap; padding: 16px; background-color: white; & > *:not(:first-child) {