Skip to content

Commit

Permalink
Ensure PDFControls do not scroll off the screen when zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
smorton-planview committed Jun 10, 2024
1 parent c15888e commit ded8116
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/ProxyRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ export const ProxyRenderer: FC = () => {
);

return (
<Container
id="proxy-renderer"
data-testid="proxy-renderer"
ref={containerRef}
>
<div id="proxy-renderer" data-testid="proxy-renderer" ref={containerRef}>
<Contents
{...{
state,
Expand All @@ -134,15 +130,10 @@ export const ProxyRenderer: FC = () => {
t,
}}
/>
</Container>
</div>
);
};

const Container = styled.div`
display: flex;
flex: 1;
`;

const LoadingContainer = styled.div`
display: flex;
flex: 1;
Expand Down

0 comments on commit ded8116

Please sign in to comment.