Spaces:
Paused
Paused
Update app.py via AI Editor
Browse files
app.py
CHANGED
@@ -231,26 +231,27 @@ def left_navbar_static():
|
|
231 |
], style={"padding": "1rem", "backgroundColor": "#f8f9fa", "height": "100vh", "overflowY": "auto"})
|
232 |
|
233 |
def chat_box_card():
|
234 |
-
#
|
235 |
return dbc.Card(
|
236 |
dbc.CardBody([
|
237 |
-
html.Div(
|
238 |
-
"
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
248 |
]),
|
249 |
className="mt-3",
|
250 |
style={
|
251 |
-
"height": "62vh"
|
252 |
-
"overflowY": "scroll",
|
253 |
-
"overflowX": "auto"
|
254 |
}
|
255 |
)
|
256 |
|
|
|
231 |
], style={"padding": "1rem", "backgroundColor": "#f8f9fa", "height": "100vh", "overflowY": "auto"})
|
232 |
|
233 |
def chat_box_card():
|
234 |
+
# Make only the chat-window scrollable, always show vertical scrollbar
|
235 |
return dbc.Card(
|
236 |
dbc.CardBody([
|
237 |
+
html.Div(
|
238 |
+
id="chat-window",
|
239 |
+
style={
|
240 |
+
"height": "60vh",
|
241 |
+
"overflowY": "auto",
|
242 |
+
"overflowX": "auto",
|
243 |
+
"display": "flex",
|
244 |
+
"flexDirection": "column",
|
245 |
+
"justifyContent": "flex-end",
|
246 |
+
"backgroundColor": "#fff",
|
247 |
+
"padding": "0.5rem",
|
248 |
+
"borderRadius": "0.5rem"
|
249 |
+
}
|
250 |
+
)
|
251 |
]),
|
252 |
className="mt-3",
|
253 |
style={
|
254 |
+
"height": "62vh"
|
|
|
|
|
255 |
}
|
256 |
)
|
257 |
|