Skip to content

Commit

Permalink
Metadata more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed Oct 10, 2024
1 parent e40756c commit d18fb83
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,28 @@
width: 45%;
}

@media (max-width: 1399.98px) {
#page-metadata #bottom_bar {
z-index: 3;
}

@media (max-width: 1500px) {
#page-metadata #container-main {
width: 50%;
}
#page-metadata #sidebarTools {
width: 50%;
}
}

@media (max-width: 575.98px) {
#page-metadata #container-main {
width: 100%;
}
#page-metadata #sidebarTools {
display:none;
width: 100%;
}
}
@media (max-width: 480px) {
.subtitle {
font-size: .875em
Expand Down
3 changes: 3 additions & 0 deletions public/js/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ function createEventsListener() {
document.getElementById('save').addEventListener('click', function (e) {
save()
})
document.getElementById('save_mobile').addEventListener('click', function (e) {
save()
})
}

async function pageUpload() {
Expand Down
3 changes: 1 addition & 2 deletions templates/metadata.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<?php include('components/footer.html.php'); ?>
</div>
<div id="page-metadata" class="d-none">
<div id="div-margin-top" style="height: 88px;" class="d-md-none"></div>
<div style="overflow: auto;" class="vh-100" id="container-main">
<div id="form-metadata" class="mx-auto w-75 pt-3 pb-5">
<h3><?php echo _("List of PDF metadata"); ?></h3>
Expand Down Expand Up @@ -77,7 +76,7 @@
</div>
<div id="bottom_bar" class="position-fixed bottom-0 start-0 bg-white w-100 p-2 shadow-sm d-md-none">
<div id="bottom_bar_action" class="d-grid gap-2">
<button class="btn btn-primary" id="save_mobile"><i class="bi bi-download"></i> <?php echo _("Download the PDF"); ?></button>
<button class="btn btn-primary" id="save_mobile"><i class="bi bi-download"></i> <?php echo _("Save and download the PDF"); ?></button>
</div>
</div>
</div>
Expand Down

0 comments on commit d18fb83

Please sign in to comment.