bluenevus commited on
Commit
9d629f9
·
1 Parent(s): 9ffdcba

Update app.py via AI Editor

Browse files
Files changed (1) hide show
  1. app.py +16 -15
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
- # Explicit scrollbars and height
235
  return dbc.Card(
236
  dbc.CardBody([
237
- html.Div(id="chat-window", style={
238
- "height": "60vh",
239
- "overflowY": "scroll",
240
- "overflowX": "auto",
241
- "display": "flex",
242
- "flexDirection": "column",
243
- "justifyContent": "flex-end",
244
- "backgroundColor": "#fff",
245
- "padding": "0.5rem",
246
- "borderRadius": "0.5rem"
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