From b22875db33bae40631196a37bb071fb94c42ca0c Mon Sep 17 00:00:00 2001 From: cc heart <71313168+cc-hearts@users.noreply.github.com> Date: Sat, 11 Nov 2023 09:53:59 +0800 Subject: [PATCH] fix(message): message offset error (#7093) --- components/message/style/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/message/style/index.ts b/components/message/style/index.ts index 8a09b3358..7fe88d23e 100644 --- a/components/message/style/index.ts +++ b/components/message/style/index.ts @@ -71,6 +71,8 @@ const genMessageStyle: GenerateStyle = token => { ...resetComponent(token), position: 'fixed', top: marginXS, + left: '50%', + transform: 'translateX(-50%)', width: '100%', pointerEvents: 'none', zIndex: zIndexPopup,