Yiming-M commited on
Commit
cf779d9
·
1 Parent(s): b564f44

2025-08-01 09:20 🚀

Browse files
Files changed (1) hide show
  1. app.py +58 -2
app.py CHANGED
@@ -567,6 +567,13 @@ select option[value*="━━━━━━"] {
567
  width: 100% !important;
568
  margin-bottom: 20px !important;
569
  }
 
 
 
 
 
 
 
570
  }
571
 
572
  @media (max-width: 900px) {
@@ -589,6 +596,13 @@ select option[value*="━━━━━━"] {
589
  width: 100% !important;
590
  margin-bottom: 16px !important;
591
  }
 
 
 
 
 
 
 
592
  }
593
 
594
  @media (max-width: 768px) {
@@ -622,6 +636,13 @@ select option[value*="━━━━━━"] {
622
  .zero-analysis-image {
623
  height: 300px !important;
624
  }
 
 
 
 
 
 
 
625
  }
626
 
627
  /* 超宽屏幕优化 */
@@ -734,8 +755,8 @@ select option[value*="━━━━━━"] {
734
 
735
  /* 确保第二行组件等高 */
736
  .gr-row:nth-of-type(2) .gr-group {
737
- height: auto !important;
738
- min-height: 180px !important;
739
  display: flex !important;
740
  flex-direction: column !important;
741
  }
@@ -756,6 +777,29 @@ select option[value*="━━━━━━"] {
756
  min-height: 60px !important;
757
  }
758
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  /* 列间距优化 */
760
  .gr-column {
761
  padding: 0 8px !important;
@@ -826,6 +870,18 @@ select option[value*="━━━━━━"] {
826
  height: 100% !important;
827
  }
828
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  /* 统计信息卡片美化 */
830
  .gr-textbox[label*="Count"] {
831
  background: linear-gradient(135deg, #ecfcff 0%, #cffafe 100%) !important;
 
567
  width: 100% !important;
568
  margin-bottom: 20px !important;
569
  }
570
+
571
+ /* 重置中等屏幕上的组件高度 */
572
+ .gr-row:nth-of-type(2) .gr-group,
573
+ .gr-row:nth-of-type(3) .gr-group {
574
+ height: auto !important;
575
+ min-height: auto !important;
576
+ }
577
  }
578
 
579
  @media (max-width: 900px) {
 
596
  width: 100% !important;
597
  margin-bottom: 16px !important;
598
  }
599
+
600
+ /* 重置小屏幕上的组件高度 */
601
+ .gr-row:nth-of-type(2) .gr-group,
602
+ .gr-row:nth-of-type(3) .gr-group {
603
+ height: auto !important;
604
+ min-height: auto !important;
605
+ }
606
  }
607
 
608
  @media (max-width: 768px) {
 
636
  .zero-analysis-image {
637
  height: 300px !important;
638
  }
639
+
640
+ /* 小屏幕上重置组件高度 */
641
+ .gr-row:nth-of-type(2) .gr-group,
642
+ .gr-row:nth-of-type(3) .gr-group {
643
+ height: auto !important;
644
+ min-height: auto !important;
645
+ }
646
  }
647
 
648
  /* 超宽屏幕优化 */
 
755
 
756
  /* 确保第二行组件等高 */
757
  .gr-row:nth-of-type(2) .gr-group {
758
+ height: 220px !important;
759
+ min-height: 220px !important;
760
  display: flex !important;
761
  flex-direction: column !important;
762
  }
 
777
  min-height: 60px !important;
778
  }
779
 
780
+ /* 确保第三行组件等高 */
781
+ .gr-row:nth-of-type(3) .gr-group {
782
+ height: 520px !important;
783
+ min-height: 520px !important;
784
+ display: flex !important;
785
+ flex-direction: column !important;
786
+ }
787
+
788
+ .gr-row:nth-of-type(3) .gr-group > * {
789
+ flex: 1 !important;
790
+ }
791
+
792
+ /* 第三行的图像容器特殊处理 */
793
+ .gr-row:nth-of-type(3) .gr-image {
794
+ height: 400px !important;
795
+ flex: 0 0 400px !important;
796
+ }
797
+
798
+ /* 第三行的按钮容器 */
799
+ .gr-row:nth-of-type(3) .gr-button {
800
+ margin-top: auto !important;
801
+ }
802
+
803
  /* 列间距优化 */
804
  .gr-column {
805
  padding: 0 8px !important;
 
870
  height: 100% !important;
871
  }
872
 
873
+ /* 第二行内部子行等高处理 */
874
+ .gr-row:nth-of-type(2) .gr-group .gr-row {
875
+ height: 100% !important;
876
+ align-items: stretch !important;
877
+ }
878
+
879
+ .gr-row:nth-of-type(2) .gr-group .gr-row .gr-column {
880
+ display: flex !important;
881
+ flex-direction: column !important;
882
+ justify-content: space-between !important;
883
+ }
884
+
885
  /* 统计信息卡片美化 */
886
  .gr-textbox[label*="Count"] {
887
  background: linear-gradient(135deg, #ecfcff 0%, #cffafe 100%) !important;