Spaces:
Sleeping
Sleeping
Update demo.py
Browse files
demo.py
CHANGED
@@ -70,9 +70,18 @@ css = """
|
|
70 |
height: 100px; /* Set height to 100px */
|
71 |
}
|
72 |
|
73 |
-
/* Adjust the width for the accordion */
|
74 |
.gradio-accordion {
|
75 |
-
width: 100%; /*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
"""
|
78 |
|
|
|
70 |
height: 100px; /* Set height to 100px */
|
71 |
}
|
72 |
|
73 |
+
/* Adjust the width for the accordion and prevent layout change */
|
74 |
.gradio-accordion {
|
75 |
+
width: 100%; /* Full width for accordions */
|
76 |
+
max-height: 200px; /* Set a maximum height */
|
77 |
+
overflow-y: auto; /* Allow scroll if content exceeds max height */
|
78 |
+
margin-bottom: 10px; /* Space below the accordion */
|
79 |
+
}
|
80 |
+
|
81 |
+
/* Set the maximum height and prevent overflow for the accordion content */
|
82 |
+
.gradio-accordion .accordion-content {
|
83 |
+
max-height: 200px;
|
84 |
+
overflow-y: auto; /* Add vertical scrollbar if content overflows */
|
85 |
}
|
86 |
"""
|
87 |
|