Skip to content

Commit

Permalink
adding adaptive metrics image width
Browse files Browse the repository at this point in the history
  • Loading branch information
RafailFridman committed Nov 28, 2023
1 parent fe5d3da commit 16eb03e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ <h2 class="title is-3">Measuring Motion Fidelity</h2>
<br>

<div style="text-align: center;">
<img src="sm/assets/pics/metrics.png" alt="motion_fidelity" width="50%">
<img src="sm/assets/pics/metrics.png" alt="motion_fidelity" id="metrics_image">
</div>

</div>
Expand Down
11 changes: 11 additions & 0 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,15 @@ body {
/* Set the width to 60% for larger screens */
width: 60%;
}
}

#metrics_image {
/* Default width for small screens or when no media query matches */
width: 100%;

/* Media query for screens with a minimum width of 768 pixels (adjust as needed) */
@media screen and (min-width: 768px) {
/* Set the width to 60% for larger screens */
width: 50%;
}
}

0 comments on commit 16eb03e

Please sign in to comment.