openfree commited on
Commit
53b3b68
ยท
verified ยท
1 Parent(s): dadc7b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -13
app.py CHANGED
@@ -656,33 +656,39 @@ def create_interface():
656
  padding: 12px;
657
  transition: all 0.3s ease;
658
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
659
- width: 150%; /* ๋„ˆ๋น„ ์ฆ๊ฐ€ */
660
- margin-right: -50%; /* ์˜ค๋ฅธ์ชฝ ์—ฌ๋ฐฑ ์กฐ์ • */
661
  }
662
  .search-box:focus {
663
  border-color: #7b61ff;
664
  box-shadow: 0 0 0 2px rgba(123,97,255,0.2);
665
  background: linear-gradient(135deg, #ffffff, #f0f3ff);
666
  }
 
667
  .sort-radio {
668
- display: flex;
669
- justify-content: space-between;
670
- gap: 10px;
671
  background: linear-gradient(135deg, #f5f5ff, #f0f0ff);
672
  padding: 12px;
673
  border-radius: 10px;
674
- width: 150%; /* ๋„ˆ๋น„ ์ฆ๊ฐ€ */
675
- margin-right: -50%; /* ์˜ค๋ฅธ์ชฝ ์—ฌ๋ฐฑ ์กฐ์ • */
 
676
  }
 
677
  .sort-radio label {
678
- flex: 1;
679
- text-align: center;
680
- padding: 10px 15px;
681
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
682
  border-radius: 8px;
683
  cursor: pointer;
684
  transition: all 0.3s ease;
685
  border: 1px solid rgba(123,97,255,0.1);
 
 
 
686
  }
687
  .sort-radio label:hover {
688
  background: linear-gradient(135deg, #f0f3ff, #e8ecff);
@@ -693,6 +699,7 @@ def create_interface():
693
  color: white;
694
  border-color: transparent;
695
  }
 
696
  .refresh-btn {
697
  background: linear-gradient(135deg, #7b61ff, #6366f1);
698
  color: white;
@@ -701,18 +708,30 @@ def create_interface():
701
  border-radius: 10px;
702
  cursor: pointer;
703
  transition: all 0.3s ease;
704
- width: 120px; /* ๋ฒ„ํŠผ ๋„ˆ๋น„ */
705
- height: 40px; /* ๋ฒ„ํŠผ ๋†’์ด */
706
  display: flex;
707
  align-items: center;
708
  justify-content: center;
709
- margin-left: auto; /* ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ */
 
710
  }
711
  .refresh-btn:hover {
712
  transform: translateY(-2px);
713
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
714
  background: linear-gradient(135deg, #8b71ff, #7376f1);
715
  }
 
 
 
 
 
 
 
 
 
 
 
716
  """) as interface:
717
 
718
  gr.Markdown("""
 
656
  padding: 12px;
657
  transition: all 0.3s ease;
658
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
659
+ width: 150%;
660
+ margin-right: -50%;
661
  }
662
  .search-box:focus {
663
  border-color: #7b61ff;
664
  box-shadow: 0 0 0 2px rgba(123,97,255,0.2);
665
  background: linear-gradient(135deg, #ffffff, #f0f3ff);
666
  }
667
+ /* ์ •๋ ฌ ๋ผ๋””์˜ค ๋ฒ„ํŠผ ์ปจํ…Œ์ด๋„ˆ ์Šคํƒ€์ผ ์ˆ˜์ • */
668
  .sort-radio {
669
+ display: flex !important;
670
+ justify-content: space-between !important;
671
+ gap: 10px !important;
672
  background: linear-gradient(135deg, #f5f5ff, #f0f0ff);
673
  padding: 12px;
674
  border-radius: 10px;
675
+ width: 300% !important; /* ๋„ˆ๋น„ 2๋ฐฐ๋กœ ์ฆ๊ฐ€ */
676
+ margin-right: -100%;
677
+ min-width: 400px !important; /* ์ตœ์†Œ ๋„ˆ๋น„ ์„ค์ • */
678
  }
679
+ /* ์ •๋ ฌ ๋ผ๋””์˜ค ๋ฒ„ํŠผ ๋ ˆ์ด๋ธ” ์Šคํƒ€์ผ */
680
  .sort-radio label {
681
+ flex: 1 !important;
682
+ text-align: center !important;
683
+ padding: 10px 15px !important;
684
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
685
  border-radius: 8px;
686
  cursor: pointer;
687
  transition: all 0.3s ease;
688
  border: 1px solid rgba(123,97,255,0.1);
689
+ white-space: nowrap !important; /* ํ…์ŠคํŠธ ์ค„๋ฐ”๊ฟˆ ๋ฐฉ์ง€ */
690
+ display: inline-block !important;
691
+ min-width: 100px !important; /* ์ตœ์†Œ ๋„ˆ๋น„ ์„ค์ • */
692
  }
693
  .sort-radio label:hover {
694
  background: linear-gradient(135deg, #f0f3ff, #e8ecff);
 
699
  color: white;
700
  border-color: transparent;
701
  }
702
+ /* ๋ฆฌํ”„๋ ˆ์‹œ ๋ฒ„ํŠผ ์Šคํƒ€์ผ ์ˆ˜์ • */
703
  .refresh-btn {
704
  background: linear-gradient(135deg, #7b61ff, #6366f1);
705
  color: white;
 
708
  border-radius: 10px;
709
  cursor: pointer;
710
  transition: all 0.3s ease;
711
+ width: 120px;
712
+ height: 80px !important; /* ๋†’์ด 2๋ฐฐ๋กœ ์ฆ๊ฐ€ */
713
  display: flex;
714
  align-items: center;
715
  justify-content: center;
716
+ margin-left: auto;
717
+ font-size: 1.2em !important; /* ํฐํŠธ ํฌ๊ธฐ ์ฆ๊ฐ€ */
718
  }
719
  .refresh-btn:hover {
720
  transform: translateY(-2px);
721
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
722
  background: linear-gradient(135deg, #8b71ff, #7376f1);
723
  }
724
+ /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ ๊ทธ๋ฃน ์ปจํ…Œ์ด๋„ˆ ๊ฐ•์ œ ์Šคํƒ€์ผ */
725
+ .sort-radio > div {
726
+ display: flex !important;
727
+ gap: 10px !important;
728
+ width: 100% !important;
729
+ }
730
+ /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ ํ•ญ๋ชฉ ๊ฐ•์ œ ์Šคํƒ€์ผ */
731
+ .sort-radio > div > div {
732
+ flex: 1 !important;
733
+ min-width: 100px !important;
734
+ }
735
  """) as interface:
736
 
737
  gr.Markdown("""