AykutSarac 3 年之前
父節點
當前提交
c898d99493
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/components/CustomNode/styles.tsx

+ 2 - 4
src/components/CustomNode/styles.tsx

@@ -11,15 +11,13 @@ export const StyledTextWrapper = styled.div`
   cursor: pointer;
 `;
 
-export const StyledText = styled.pre<{
-  width: number;
-  height: number;
-}>`
+export const StyledText = styled.pre<{ width: number; height: number }>`
   display: flex;
   justify-content: center;
   flex-direction: column;
   width: ${({ width }) => width};
   height: ${({ height }) => height};
+  min-height: 50;
   color: ${({ theme }) => theme.TEXT_NORMAL};
 `;