Skip to content

Commit

Permalink
Merge pull request #4318 from GordonSmith/V3TWEAKS_ECLWATCH
Browse files Browse the repository at this point in the history
feat:  Drop preact-shim and bump versions
  • Loading branch information
GordonSmith authored Nov 28, 2024
2 parents 29f2684 + 24044a4 commit ac7d807
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 ac7d807

Please sign in to comment.