Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
-
|
|
|
|
|
701 |
}
|
702 |
|
703 |
/* ๋ผ๋์ค ๋ฒํผ ๊ทธ๋ฃน ์ปจํ
์ด๋ */
|
704 |
.sort-radio > div {
|
705 |
display: flex !important;
|
706 |
gap: 15px !important;
|
707 |
-
|
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.
|
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=["
|
811 |
-
value="
|
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",
|