Skip to content

Commit

Permalink
fix: modify font size
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Sep 26, 2024
1 parent 3af2d92 commit a823f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/graphs/src/core/base/node/text-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const StyledWrapper = styled.div<{
height: inherit;
width: inherit;
box-sizing: content-box;
font-size: 14px;
${({ $type, $color, $borderWidth }) => {
switch ($type) {
Expand Down Expand Up @@ -132,7 +133,7 @@ export const TextNode: FC<TextNodeProps> = (props) => {
$borderWidth={borderWidth}
$isActive={isActive}
$isSelected={isSelected}
className={className}
className={`text-node ${className}`}
style={{ ...style, ...font }}
>
<div style={isMultiLine ? { width: 'calc(100% - 12px)' } : {}}>{text}</div>
Expand Down

0 comments on commit a823f91

Please sign in to comment.