Having difficulties with styling #1631
Replies: 1 comment 5 replies
-
So I ended up just using .Example__container__document .react-pdf__Document {
display: flex;
flex-direction: column;
align-items: center;
}
.Example__container__document .react-pdf__Thumbnail__page {
max-width: calc(100% - 2em);
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
margin: 1em;
}
.Example__container__document .react-pdf__Thumbnail__page canvas {
max-width: 100%;
height: auto !important;
}
.Example__container__document .react-pdf__message {
padding: 20px;
color: white;
} And it seems to have done the trick |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to just kind of get up and running with this library so I borrowed some of the styles from next-app example.
Here is the code rendering it
And this is the custom component
However, it looks like there's an issue with the PDF rendering outside of the div as you can see in the screenshot below.
This is causing an issue because you can't click on the
download
button and you can select a bunch of empty space because there's content fromreact-pdf
there.Any help would be greatly appreciated! I am sure I am just styling it incorrectly.
Beta Was this translation helpful? Give feedback.
All reactions