From 83a6130ef4aa68256de5511cdbcc24a6c8e7a430 Mon Sep 17 00:00:00 2001 From: BillyS Date: Fri, 20 May 2022 00:30:43 +0800 Subject: [PATCH] fix: fix compose bottom nav style (#6313) --- .../mask/src/components/CompositionDialog/CompositionUI.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mask/src/components/CompositionDialog/CompositionUI.tsx b/packages/mask/src/components/CompositionDialog/CompositionUI.tsx index 2c9bd36b0fa8..cb7f0962ef19 100644 --- a/packages/mask/src/components/CompositionDialog/CompositionUI.tsx +++ b/packages/mask/src/components/CompositionDialog/CompositionUI.tsx @@ -39,6 +39,8 @@ const useStyles = makeStyles()((theme) => ({ position: 'absolute', bottom: 0, width: '100%', + left: '50%', + transform: 'translateX(-50%)', display: 'flex', padding: '14px 16px', boxSizing: 'border-box', @@ -47,7 +49,6 @@ const useStyles = makeStyles()((theme) => ({ alignItems: 'center', background: theme.palette.background.paper, boxShadow: `0px 0px 20px 0px ${theme.palette.background.messageShadow}`, - transform: 'translateX(-16px)', }, between: { justifyContent: 'space-between',