Skip to content

Commit

Permalink
fix: Revert text autosize changes
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
  • Loading branch information
GordonSmith committed Nov 29, 2024
1 parent 29f2684 commit 75d7693
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ export const LabelledRect: FunctionComponent<LabelledRect> = ({

return <>
<Rectangle
width={actualWidth}
height={actualHeight}
width={width}
height={height}
fill={fill}
stroke={stroke}
strokeWidth={strokeWidth}
cornerRadius={cornerRadius}
/>
<g transform={`translate(${-(actualWidth / 2) + padding} ${-(actualHeight / 2) + padding + fontSize * 0.15})`}>
<g transform={`translate(${-(width / 2) + padding} ${-(height / 2) + padding})`}>
<TextLine
text={text}
fontFamily={fontFamily}
Expand Down

0 comments on commit 75d7693

Please sign in to comment.