From d2067f1770228a0523dd4d18aee67e882047eafa Mon Sep 17 00:00:00 2001 From: Dmitri Date: Thu, 2 Apr 2026 09:42:09 +0400 Subject: [PATCH] fixed gallery background issue --- .../components/UiElements/elements/GalleryElement.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/UiElements/elements/GalleryElement.tsx b/frontend/src/components/UiElements/elements/GalleryElement.tsx index b66ff8c..f1bbfd4 100644 --- a/frontend/src/components/UiElements/elements/GalleryElement.tsx +++ b/frontend/src/components/UiElements/elements/GalleryElement.tsx @@ -52,9 +52,15 @@ const GalleryElement: React.FC = ({ return font ? getFontStyle(font) : { fontFamily: fontKey }; }, [element.galleryTextFontFamily]); + // Extract backgroundColor from style to apply to inner content wrapper + const { backgroundColor, ...outerStyle } = style; + return ( -
-
+
+
{/* Header image */} {headerImageUrl && ( // eslint-disable-next-line @next/next/no-img-element