From 8fcb04044246ed444163e82d70a902fe8b8104d9 Mon Sep 17 00:00:00 2001 From: haitaoo Date: Thu, 13 Jul 2023 17:06:55 +0800 Subject: [PATCH] feat: Updated **footer** insertion location and related hints. --- i18n/en_US.yaml | 2 +- ui/src/components/Customize/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index 3c8d9704..1a251c72 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -1631,7 +1631,7 @@ ui: text: This will insert after footer: label: Footer - text: This will insert before . + text: This will insert before . sidebar: label: Sidebar text: This will insert in sidebar. diff --git a/ui/src/components/Customize/index.tsx b/ui/src/components/Customize/index.tsx index 33875414..6833a696 100644 --- a/ui/src/components/Customize/index.tsx +++ b/ui/src/components/Customize/index.tsx @@ -91,7 +91,7 @@ const handleCustomHeader = (content) => { }; const handleCustomFooter = (content) => { - const el = document.documentElement; + const el = document.body; renderCustomArea(el, CUSTOM_MARK_FOOTER, 'beforeend', content); };