msmaje commited on
Commit
e5962a9
·
verified ·
1 Parent(s): f5d58e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -109,26 +109,31 @@ css = """
109
  /* Chatbot container responsive height */
110
  .chatbot-container {
111
  height: 400px;
 
112
  }
113
 
114
  @media (min-width: 768px) {
115
  .chatbot-container {
116
  height: 500px;
 
117
  }
118
  }
119
 
120
  @media (min-width: 1024px) {
121
  .chatbot-container {
122
  height: 600px;
 
123
  }
124
  }
125
 
126
- /* Input row responsive behavior */
127
  .input-row {
128
  display: flex;
129
  gap: 10px;
130
  align-items: flex-end;
131
  flex-wrap: nowrap;
 
 
132
  }
133
 
134
  @media (max-width: 480px) {
@@ -273,11 +278,12 @@ with gr.Blocks(css=css, title="🤖 Codestral AI Chat", theme=gr.themes.Soft())
273
  show_label=True,
274
  container=True,
275
  bubble_full_width=False,
276
- elem_classes=["chatbot-container"]
 
277
  )
278
 
279
- # Input row with responsive design
280
- with gr.Row(elem_classes=["input-row"]):
281
  msg = gr.Textbox(
282
  label="Your Message",
283
  placeholder="Type your question here...",
 
109
  /* Chatbot container responsive height */
110
  .chatbot-container {
111
  height: 400px;
112
+ margin-bottom: 10px !important;
113
  }
114
 
115
  @media (min-width: 768px) {
116
  .chatbot-container {
117
  height: 500px;
118
+ margin-bottom: 15px !important;
119
  }
120
  }
121
 
122
  @media (min-width: 1024px) {
123
  .chatbot-container {
124
  height: 600px;
125
+ margin-bottom: 15px !important;
126
  }
127
  }
128
 
129
+ /* Reduce gap between chatbot and input */
130
  .input-row {
131
  display: flex;
132
  gap: 10px;
133
  align-items: flex-end;
134
  flex-wrap: nowrap;
135
+ margin-top: 0 !important;
136
+ padding-top: 0 !important;
137
  }
138
 
139
  @media (max-width: 480px) {
 
278
  show_label=True,
279
  container=True,
280
  bubble_full_width=False,
281
+ elem_classes=["chatbot-container"],
282
+ show_copy_button=True
283
  )
284
 
285
+ # Input row with responsive design - reduced gap
286
+ with gr.Row(elem_classes=["input-row"], variant="compact"):
287
  msg = gr.Textbox(
288
  label="Your Message",
289
  placeholder="Type your question here...",