Skip to content

Commit

Permalink
Update PDF.css
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsFlem authored Oct 23, 2024
1 parent 7b32fbe commit 8706f28
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/components/PDF.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,20 @@
font-size: 1.8rem;
}

/* Default behavior for desktops */
.pdf-viewer-container iframe,
.pdf-viewer-container object {
width: 100%;
height: 100vh;
border: none;
border-radius: 8px;
overflow: scroll;
}

/* Mobile and smaller devices */
@media (max-width: 768px) {
.pdf-viewer-container iframe,
.pdf-viewer-container object {
height: auto; /* Let the height be automatic */
max-height: 80vh; /* Ensure it doesn't exceed the viewport */
width: 100%;
overflow: scroll;
}

.pdf-viewer-container iframe {
height: auto;
width: 100%;
overflow: scroll;
}

.pdf-viewer-container {
padding: 1rem;
max-height: 80vh;
}
}

0 comments on commit 8706f28

Please sign in to comment.