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, },