omarash2016 commited on
Commit
9a850b0
ยท
verified ยท
1 Parent(s): 2211046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -183,7 +183,19 @@ theme = gr.themes.Soft(
183
  block_title_text_weight="600"
184
  )
185
 
186
- with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
187
  # --- Header with Model Selector ---
188
  with gr.Row(variant="compact", elem_classes="header-row"):
189
  with gr.Column(scale=1):
@@ -239,10 +251,10 @@ with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True) as demo:
239
 
240
  # Right Column: Resources Dashboard (Side View - Visible by default)
241
  with gr.Column(scale=2) as right_col:
242
- gr.Markdown("### ๐ŸŽ’ Learning Dashboard")
243
 
244
  # --- Key Takeaways (Placed in the empty "yellow" space above tabs) ---
245
- summary_box_side = gr.Markdown(value="### ๐Ÿ“ Key Takeaways\n*Ask a topic to get a cheat sheet!*")
246
 
247
  with gr.Tabs():
248
  with gr.TabItem("๐Ÿ“บ Videos"):
 
183
  block_title_text_weight="600"
184
  )
185
 
186
+ # Custom CSS to shrink gaps in the right column
187
+ custom_css = """
188
+ .tight-header {
189
+ margin-bottom: -15px !important;
190
+ padding-bottom: 0px !important;
191
+ }
192
+ .tight-content {
193
+ margin-top: 0px !important;
194
+ padding-top: 0px !important;
195
+ }
196
+ """
197
+
198
+ with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True, css=custom_css) as demo:
199
  # --- Header with Model Selector ---
200
  with gr.Row(variant="compact", elem_classes="header-row"):
201
  with gr.Column(scale=1):
 
251
 
252
  # Right Column: Resources Dashboard (Side View - Visible by default)
253
  with gr.Column(scale=2) as right_col:
254
+ gr.Markdown("### ๐ŸŽ’ Learning Dashboard", elem_classes="tight-header")
255
 
256
  # --- Key Takeaways (Placed in the empty "yellow" space above tabs) ---
257
+ summary_box_side = gr.Markdown(value="### ๐Ÿ“ Key Takeaways\n*Ask a topic to get a cheat sheet!*", elem_classes="tight-content")
258
 
259
  with gr.Tabs():
260
  with gr.TabItem("๐Ÿ“บ Videos"):