diegomura / diegomura/react-pdf
Flex issue with PDFDownloadLink and PDFViewer
Open
bug
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Problem**
While it is known that, by default, the flex-direction property in CSS is set to row for a flex container, I encountered an issue when using PDFDownloadLink and PDFViewer. In this case, it does not work as expected.
https://stackblitz.com/edit/vitejs-vite-sjxjiz?file=src%2FApp.tsx
I had to use flexDirection: 'row' to achieve the desired layout.
**Desktop (please complete the following information):**
- OS: MacOS
- Browser : chrome
- React-pdf-renderer version: 3.1.14
Contributor guide
Assessment
This issue has not been assessed yet.