Skip to content

Commit

Permalink
adjusts flex to spill over two rows, improves overflow re #8
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Sep 7, 2023
1 parent fd8723e commit 9dbbec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions presutah/media/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
height: 100%;
width: auto;
flex: 1;
max-width: calc(100% / 4);
object-fit: cover;
}

.img-report-print-only-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
max-height: 350px;
/* max-height: 350px; */
}

.scroll-y {
/* height: auto; */
}
2 changes: 1 addition & 1 deletion presutah/templates/views/report-templates/image.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- ko if: ko.unwrap(imgs) -->
<div class="img-report-print-only-container">
<!-- ko foreach: {data: imgs, as: 'img'} -->
<img class="img-report-print-only" data-bind="attr: {src: img.src}" />
<img class="img-report-print-only" data-bind="attr: {src: img.src, style: ('max-width: calc(100% /' + Math.round(ko.unwrap($parent.imgs).length/2) + ')')}" />
<!-- /ko -->
</div>
<!-- /ko -->
Expand Down

0 comments on commit 9dbbec6

Please sign in to comment.