Skip to content

Commit

Permalink
Image size fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0wxr committed Mar 11, 2024
1 parent ce4f231 commit 9e2da96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions python/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
overflow: scroll;
}

.DCMImg {
display: block;
width: 100%;
object-fit: contain;
max-height: 80vh;
}

#ImgWrapper {
position: relative;
max-width: 40vw;
}

#OverlayCanvas,
Expand Down
16 changes: 9 additions & 7 deletions python/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,15 @@
</div>
</div>
</div>
<div id="ImgWrapper">
<!-- djlint:off H006-->
<img id="PixelDataDisplay" class="DCMImg" alt="Image">
<!-- djlint:on -->
<canvas id="OverlayCanvas"></canvas>
<canvas id="BoxCanvas"></canvas>
</div>
<center>
<div id="ImgWrapper">
<!-- djlint:off H006-->
<img id="PixelDataDisplay" style="max-height: " class="DCMImg" alt="Image">
<!-- djlint:on -->
<canvas id="OverlayCanvas"></canvas>
<canvas id="BoxCanvas"></canvas>
</div>
</center>
</div>
<div class="tab-pane fade"
id="profile-tab-pane"
Expand Down

0 comments on commit 9e2da96

Please sign in to comment.