openfree commited on
Commit
f3da4e9
โ€ข
1 Parent(s): d702c1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -15
app.py CHANGED
@@ -671,9 +671,7 @@ def create_interface():
671
  padding: 20px;
672
  margin: 10px 0;
673
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
674
- display: flex;
675
- align-items: center;
676
- gap: 20px;
677
  }
678
  .search-box {
679
  border: 2px solid #e1e1e1;
@@ -690,29 +688,26 @@ def create_interface():
690
  }
691
  /* ์ •๋ ฌ ๋ฒ„ํŠผ ์ปจํ…Œ์ด๋„ˆ ์ˆ˜์ • */
692
  .sort-radio {
693
- display: flex !important;
694
- justify-content: center !important;
695
  gap: 15px !important;
696
- width: 400px !important; /* ๋„ˆ๋น„ ๊ณ ์ • */
697
- min-width: 400px !important; /* ์ตœ์†Œ ๋„ˆ๋น„ ์„ค์ • */
698
  background: transparent !important;
699
  padding: 0 !important;
700
- height: 80px !important; /* ๋†’์ด ๊ณ ์ • */
 
 
701
  }
702
 
703
  /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ ๊ทธ๋ฃน ์ปจํ…Œ์ด๋„ˆ */
704
  .sort-radio > div {
705
  display: flex !important;
706
  gap: 15px !important;
707
- width: 100% !important;
708
- flex-wrap: nowrap !important; /* ์ค„๋ฐ”๊ฟˆ ๋ฐฉ์ง€ */
709
  }
710
 
711
  /* ๊ฐ ๋ผ๋””์˜ค ๋ฒ„ํŠผ ํ•ญ๋ชฉ */
712
  .sort-radio > div > div {
713
  width: 120px !important;
714
  height: 80px !important;
715
- flex-shrink: 0 !important; /* ํฌ๊ธฐ ์ถ•์†Œ ๋ฐฉ์ง€ */
716
  }
717
 
718
  /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ์„ ๋ฒ„ํŠผ์ฒ˜๋Ÿผ ์Šคํƒ€์ผ๋ง */
@@ -727,10 +722,13 @@ def create_interface():
727
  border-radius: 10px !important;
728
  cursor: pointer !important;
729
  transition: all 0.3s ease !important;
730
- font-size: 1.2em !important;
731
  text-align: center !important;
732
  padding: 10px !important;
733
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
 
 
 
734
  }
735
 
736
  /* ์ฒซ ๋ฒˆ์งธ ๋ฒ„ํŠผ (rank) */
@@ -777,7 +775,6 @@ def create_interface():
777
  margin-left: auto;
778
  font-size: 1.2em !important;
779
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
780
- flex-shrink: 0 !important; /* ํฌ๊ธฐ ์ถ•์†Œ ๋ฐฉ์ง€ */
781
  }
782
 
783
  .refresh-btn:hover {
@@ -807,12 +804,13 @@ def create_interface():
807
  )
808
  with gr.Column(scale=2):
809
  spaces_sort = gr.Radio(
810
- choices=["rank", "rising_rate", "popularity"],
811
- value="rank",
812
  label="๐Ÿ“Š Sort by",
813
  interactive=True,
814
  elem_classes="sort-radio"
815
  )
 
816
  with gr.Column(scale=1):
817
  spaces_refresh_btn = gr.Button(
818
  "๐Ÿ”„ Refresh",
 
671
  padding: 20px;
672
  margin: 10px 0;
673
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
674
+ overflow: visible; /* ์Šคํฌ๋กค๋ฐ” ์ œ๊ฑฐ */
 
 
675
  }
676
  .search-box {
677
  border: 2px solid #e1e1e1;
 
688
  }
689
  /* ์ •๋ ฌ ๋ฒ„ํŠผ ์ปจํ…Œ์ด๋„ˆ ์ˆ˜์ • */
690
  .sort-radio {
691
+ display: inline-flex !important;
 
692
  gap: 15px !important;
 
 
693
  background: transparent !important;
694
  padding: 0 !important;
695
+ overflow: visible !important; /* ์Šคํฌ๋กค๋ฐ” ์ œ๊ฑฐ */
696
+ width: auto !important;
697
+ min-width: 390px !important; /* 3๊ฐœ ๋ฒ„ํŠผ + ๊ฐ„๊ฒฉ */
698
  }
699
 
700
  /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ ๊ทธ๋ฃน ์ปจํ…Œ์ด๋„ˆ */
701
  .sort-radio > div {
702
  display: flex !important;
703
  gap: 15px !important;
704
+ overflow: visible !important; /* ์Šคํฌ๋กค๋ฐ” ์ œ๊ฑฐ */
 
705
  }
706
 
707
  /* ๊ฐ ๋ผ๋””์˜ค ๋ฒ„ํŠผ ํ•ญ๋ชฉ */
708
  .sort-radio > div > div {
709
  width: 120px !important;
710
  height: 80px !important;
 
711
  }
712
 
713
  /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ์„ ๋ฒ„ํŠผ์ฒ˜๋Ÿผ ์Šคํƒ€์ผ๋ง */
 
722
  border-radius: 10px !important;
723
  cursor: pointer !important;
724
  transition: all 0.3s ease !important;
725
+ font-size: 1.1em !important;
726
  text-align: center !important;
727
  padding: 10px !important;
728
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
729
+ white-space: normal !important; /* ํ…์ŠคํŠธ ์ค„๋ฐ”๊ฟˆ ํ—ˆ์šฉ */
730
+ word-break: break-word !important; /* ๊ธด ๋‹จ์–ด ์ค„๋ฐ”๊ฟˆ */
731
+ line-height: 1.2 !important; /* ์ค„๊ฐ„๊ฒฉ ์กฐ์ • */
732
  }
733
 
734
  /* ์ฒซ ๋ฒˆ์งธ ๋ฒ„ํŠผ (rank) */
 
775
  margin-left: auto;
776
  font-size: 1.2em !important;
777
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
 
778
  }
779
 
780
  .refresh-btn:hover {
 
804
  )
805
  with gr.Column(scale=2):
806
  spaces_sort = gr.Radio(
807
+ choices=["Rank", "Rising Rate", "Popularity"], # ํ…์ŠคํŠธ ์ˆ˜์ •
808
+ value="Rank",
809
  label="๐Ÿ“Š Sort by",
810
  interactive=True,
811
  elem_classes="sort-radio"
812
  )
813
+
814
  with gr.Column(scale=1):
815
  spaces_refresh_btn = gr.Button(
816
  "๐Ÿ”„ Refresh",