This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 43c09e8b8c2cb2f7cb2c0c98b2606b596bce8ee8
Author: shuai <[email protected]>
AuthorDate: Fri Oct 18 12:33:06 2024 +0800

    fix: badge modal zindex
---
 ui/src/components/Modal/BadgeModal.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/src/components/Modal/BadgeModal.tsx 
b/ui/src/components/Modal/BadgeModal.tsx
index 9c77e9d4..01983bac 100644
--- a/ui/src/components/Modal/BadgeModal.tsx
+++ b/ui/src/components/Modal/BadgeModal.tsx
@@ -71,6 +71,9 @@ const BadgeModal: FC<BadgeModalProps> = ({ badge, visible }) 
=> {
     const LENGTH = 200;
     const bgNode = document.documentElement || document.body;
     const parentNode = document.getElementById('badgeModal')?.parentNode;
+    const badgeModalNode = document.getElementById('badgeModal');
+
+    badgeModalNode?.setAttribute('style', 'z-index: 1');
 
     if (parentNode) {
       bg1 = new AnimateGift({

Reply via email to