TwoQuarks commited on
Commit
d356f4e
·
verified ·
1 Parent(s): 2078a86

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +50 -1
style.css CHANGED
@@ -559,4 +559,53 @@ body {
559
  footer,
560
  .gradio-container footer {
561
  display: none !important;
562
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  footer,
560
  .gradio-container footer {
561
  display: none !important;
562
+ }
563
+
564
+ /* ============================================================
565
+ TwoQuarks — Gallery as Carousel Strip (horizontal scroll)
566
+ ============================================================ */
567
+
568
+ #down_gallery, #strange_gallery {
569
+ margin-top: 12px !important;
570
+ }
571
+
572
+ /* El contenedor interno de la galería cambia según versión,
573
+ por eso usamos selectores tolerantes */
574
+ #down_gallery [class*="gallery"],
575
+ #strange_gallery [class*="gallery"] {
576
+ overflow-x: auto !important;
577
+ overflow-y: hidden !important;
578
+ padding-bottom: 8px !important;
579
+ scroll-snap-type: x mandatory !important;
580
+ }
581
+
582
+ #down_gallery [class*="gallery"]::-webkit-scrollbar,
583
+ #strange_gallery [class*="gallery"]::-webkit-scrollbar {
584
+ height: 10px !important;
585
+ }
586
+
587
+ #down_gallery [class*="gallery"] [role="list"],
588
+ #strange_gallery [class*="gallery"] [role="list"] {
589
+ display: flex !important;
590
+ flex-wrap: nowrap !important;
591
+ gap: 12px !important;
592
+ }
593
+
594
+ /* Cada item = tile consistente */
595
+ #down_gallery [role="listitem"],
596
+ #strange_gallery [role="listitem"] {
597
+ flex: 0 0 320px !important;
598
+ scroll-snap-align: start !important;
599
+ border-radius: 14px !important;
600
+ overflow: hidden !important;
601
+ background: rgba(255,255,255,0.03) !important;
602
+ border: 1px solid rgba(255,255,255,0.10) !important;
603
+ }
604
+
605
+ /* Imágenes: no deformar plots */
606
+ #down_gallery img, #strange_gallery img {
607
+ width: 100% !important;
608
+ height: 240px !important;
609
+ object-fit: contain !important;
610
+ display: block !important;
611
+ }