sammy786 commited on
Commit
a450617
·
verified ·
1 Parent(s): ead97d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -1
app.py CHANGED
@@ -1454,8 +1454,38 @@ with gr.Blocks(
1454
  theme=THEME if isinstance(THEME, gr.themes.ThemeClass) else gr.themes.Soft(),
1455
  title=APP_TITLE,
1456
  css="""
 
1457
  .gradio-container {
1458
- max-width: 1200px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1459
  }
1460
 
1461
  /* ===== HERO SECTION STYLES ===== */
@@ -1469,6 +1499,7 @@ with gr.Blocks(
1469
  position: relative;
1470
  overflow: hidden;
1471
  }
 
1472
 
1473
  .hero-section::before {
1474
  content: '';
 
1454
  theme=THEME if isinstance(THEME, gr.themes.ThemeClass) else gr.themes.Soft(),
1455
  title=APP_TITLE,
1456
  css="""
1457
+ /* ===== RESPONSIVE LAYOUT ===== */
1458
  .gradio-container {
1459
+ max-width: 100% !important;
1460
+ width: 100% !important;
1461
+ padding: 0 clamp(1rem, 2vw, 3rem) !important;
1462
+ margin: 0 auto !important;
1463
+ }
1464
+
1465
+ /* Limit width on ultra-wide screens for readability */
1466
+ @media (min-width: 2560px) {
1467
+ .gradio-container {
1468
+ max-width: 1800px !important;
1469
+ }
1470
+ }
1471
+
1472
+ /* Tablet optimization */
1473
+ @media (max-width: 1024px) {
1474
+ .gradio-container {
1475
+ padding: 0 1rem !important;
1476
+ }
1477
+ }
1478
+
1479
+ /* Mobile optimization */
1480
+ @media (max-width: 768px) {
1481
+ .gradio-container {
1482
+ padding: 0 0.5rem !important;
1483
+ }
1484
+
1485
+ /* Stack hero stats vertically on mobile */
1486
+ .impact-stats {
1487
+ grid-template-columns: 1fr !important;
1488
+ }
1489
  }
1490
 
1491
  /* ===== HERO SECTION STYLES ===== */
 
1499
  position: relative;
1500
  overflow: hidden;
1501
  }
1502
+
1503
 
1504
  .hero-section::before {
1505
  content: '';