Skip to content

Commit

Permalink
fix: create wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpedemonte committed May 30, 2024
1 parent 3f18968 commit 1304f97
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ const PdfViewerTextLayer: FC<PdfViewerTextLayerProps> = ({
}
}, [renderedText, setRenderedText]);

const rootClassName = cx(className, `textLayer`);
return (
<div
className={rootClassName}
className={cx(className, 'textLayerWrapper')}
ref={textLayerRef}
style={{
width: `${loadedText?.viewport?.width ?? 0}px`,
Expand Down

0 comments on commit 1304f97

Please sign in to comment.