Chris Addis commited on
Commit ·
5005504
1
Parent(s): 00c2f37
Matcha 2
Browse files
app.py
CHANGED
|
@@ -86,9 +86,9 @@ def create_demo():
|
|
| 86 |
|
| 87 |
/* The actual <img> element inside the container */
|
| 88 |
#current-image-display img {
|
| 89 |
-
object-fit: contain; /* Scale keeping aspect ratio, within bounds */
|
| 90 |
max-width: 100%; /* Prevent image exceeding container width */
|
| 91 |
-
max-height:
|
| 92 |
width: auto; /* Use natural width unless constrained by max-width */
|
| 93 |
height: auto; /* Use natural height unless constrained by max-height */
|
| 94 |
display: block; /* Ensure image behaves predictably in flex */
|
|
|
|
| 86 |
|
| 87 |
/* The actual <img> element inside the container */
|
| 88 |
#current-image-display img {
|
| 89 |
+
object-fit: contain !important; /* Scale keeping aspect ratio, within bounds */
|
| 90 |
max-width: 100%; /* Prevent image exceeding container width */
|
| 91 |
+
max-height: 600px !important; /* Prevent image exceeding container height */
|
| 92 |
width: auto; /* Use natural width unless constrained by max-width */
|
| 93 |
height: auto; /* Use natural height unless constrained by max-height */
|
| 94 |
display: block; /* Ensure image behaves predictably in flex */
|