From 4904b24eb82b7ce0546f6c6183854a88a800d932 Mon Sep 17 00:00:00 2001 From: juliopavila Date: Mon, 24 Jul 2023 15:10:07 -0300 Subject: [PATCH] chore: fix code-block styles --- packages/app/src/components/commons/Editor/EditorBlock.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/commons/Editor/EditorBlock.tsx b/packages/app/src/components/commons/Editor/EditorBlock.tsx index 0fda08f1..68c021cc 100644 --- a/packages/app/src/components/commons/Editor/EditorBlock.tsx +++ b/packages/app/src/components/commons/Editor/EditorBlock.tsx @@ -48,8 +48,8 @@ const EditorBlockItem: React.FC = (props) => { sx={{ position: "relative", cursor: "text", - mt: 1, - mb: isBlockFocused && isEmpty && isFocused ? 1 : 0, + mt: type.includes("code-block") ? 0 : 1, + "&:hover .rich-text": { opacity: 1, },