Spaces:
Runtime error
Runtime error
Commit
·
445a9bd
1
Parent(s):
ce3c46a
Update app.py
Browse files
app.py
CHANGED
@@ -114,19 +114,21 @@ css = """
|
|
114 |
|
115 |
/* Centered Container for the Image */
|
116 |
.image-container {
|
117 |
-
max-width:
|
118 |
margin: 0 auto; /* Center the container horizontally */
|
119 |
text-align: center; /* Center the content inside the container horizontally */
|
120 |
padding: 20px; /* Add padding for spacing */
|
121 |
border: 1px solid #ccc; /* Add a subtle border to the container */
|
122 |
border-radius: 10px;
|
|
|
|
|
123 |
}
|
124 |
|
125 |
/* Set a fixed size for the image */
|
126 |
.image-container img {
|
127 |
-
width: 100%; /* Ensure the image fills the container */
|
128 |
height: auto; /* Maintain aspect ratio */
|
129 |
-
max-height:
|
130 |
border-radius: 10px;
|
131 |
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
|
132 |
}
|
|
|
114 |
|
115 |
/* Centered Container for the Image */
|
116 |
.image-container {
|
117 |
+
max-width: 100%; /* Set the maximum width for the container */
|
118 |
margin: 0 auto; /* Center the container horizontally */
|
119 |
text-align: center; /* Center the content inside the container horizontally */
|
120 |
padding: 20px; /* Add padding for spacing */
|
121 |
border: 1px solid #ccc; /* Add a subtle border to the container */
|
122 |
border-radius: 10px;
|
123 |
+
overflow: hidden; /* Hide overflow if the image is larger */
|
124 |
+
max-height: 22rem; /* Set a maximum height for the container */
|
125 |
}
|
126 |
|
127 |
/* Set a fixed size for the image */
|
128 |
.image-container img {
|
129 |
+
max-width: 100%; /* Ensure the image fills the container */
|
130 |
height: auto; /* Maintain aspect ratio */
|
131 |
+
max-height: 100%; /* Set a maximum height for the image */
|
132 |
border-radius: 10px;
|
133 |
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
|
134 |
}
|