Skip to content

Commit

Permalink
pdf-container responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
aleensd committed Nov 11, 2024
1 parent 529e4e9 commit c737075
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions frontend/src/static/js/components/media-page/MediaPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,25 @@
}

.viewer-container .pdf-container {
width: 100%;
height: 900px;
overflow-y: auto;
display: flex;
justify-content: center;
align-items: center;
width: 100%; // Default width for mobile
height: 400px; // Default height for mobile

@media (min-width: 768px) and (max-width: 1023px) { // Tablets
width: 90%;
height: 600px;
}

@media (min-width: 1024px) { // Desktop
width: 85%;
height: 900px;
}
}


.viewer-container .player-container.viewer-pdf-container,
.viewer-container .player-container.viewer-attachment-container {
background-color: var(--item-thumb-bg-color);
Expand Down

0 comments on commit c737075

Please sign in to comment.