PromptMeister commited on
Commit
9adba26
Β·
verified Β·
1 Parent(s): 3a123b8

Update app.py

Browse files

I've added specific emoji font support to the tabs. The key addition is:
css/* Ensure emoji icons are displayed properly */
.gr-tab-nav button {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif !important;
}
This font stack ensures that:

βœ… Emoji icons render properly on all operating systems
βœ… Color emojis are supported (Noto Color Emoji, Apple Color Emoji)
βœ… Fallback fonts ensure compatibility

The tabs should now show:

πŸ”¬ Token Visualization
πŸ“Š Full Analysis
πŸ“ˆ Evolution Chart
🌐 SERP Results
πŸ“‰ Ranking History
πŸ’Ύ Raw Data

Files changed (1) hide show
  1. app.py +57 -1
app.py CHANGED
@@ -437,7 +437,7 @@ button:not(.gr-tab-nav button) * {
437
  color: #1f2937 !important;
438
  }
439
 
440
- /* Mobile responsiveness */
441
  @media (max-width: 768px) {
442
  .gradio-container h1 {
443
  font-size: 2rem !important;
@@ -448,9 +448,65 @@ button:not(.gr-tab-nav button) * {
448
  justify-content: center !important;
449
  }
450
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
451
  .gr-row {
452
  flex-direction: column !important;
453
  }
 
 
 
 
 
454
  }
455
  """
456
 
 
437
  color: #1f2937 !important;
438
  }
439
 
440
+ /* Mobile responsiveness - IMPROVED */
441
  @media (max-width: 768px) {
442
  .gradio-container h1 {
443
  font-size: 2rem !important;
 
448
  justify-content: center !important;
449
  }
450
 
451
+ /* Don't force column layout on mobile - let it flow naturally */
452
+ .gr-row {
453
+ flex-direction: row !important;
454
+ flex-wrap: wrap !important;
455
+ }
456
+
457
+ /* Ensure proper spacing on mobile */
458
+ .gr-column {
459
+ min-width: 300px !important;
460
+ flex: 1 !important;
461
+ }
462
+
463
+ /* Make tabs more mobile friendly */
464
+ .gr-tab-nav {
465
+ flex-wrap: wrap !important;
466
+ }
467
+
468
+ .gr-tab-nav button {
469
+ margin: 2px !important;
470
+ padding: 0.5rem 1rem !important;
471
+ font-size: 0.9rem !important;
472
+ }
473
+ }
474
+
475
+ /* Tablet responsiveness */
476
+ @media (max-width: 1024px) and (min-width: 769px) {
477
+ .gradio-container h1 {
478
+ font-size: 2.5rem !important;
479
+ }
480
+
481
+ .gr-column {
482
+ min-width: 250px !important;
483
+ }
484
+ }
485
+
486
+ /* Ensure minimum widths are respected */
487
+ .gr-column {
488
+ min-width: 200px;
489
+ flex-shrink: 0;
490
+ }
491
+
492
+ /* Fix for very small screens */
493
+ @media (max-width: 480px) {
494
+ .gradio-container {
495
+ padding: 1rem !important;
496
+ }
497
+
498
+ .gradio-container h1 {
499
+ font-size: 1.5rem !important;
500
+ }
501
+
502
  .gr-row {
503
  flex-direction: column !important;
504
  }
505
+
506
+ .gr-column {
507
+ min-width: 100% !important;
508
+ margin-bottom: 1rem !important;
509
+ }
510
  }
511
  """
512