openfree commited on
Commit
86e9f29
โ€ข
1 Parent(s): 4d4d7e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -95
app.py CHANGED
@@ -1760,101 +1760,27 @@ def create_main_interface():
1760
  return None, gr.update(active_key="empty")
1761
 
1762
  demo = gr.Blocks(css="""
1763
- /* ๋ฉ”์ธ ํƒญ ์Šคํƒ€์ผ */
1764
- .main-tabs > div.tab-nav > button {
1765
- font-size: 1.1em !important;
1766
- padding: 0.5em 1em !important;
1767
- background: rgba(255, 255, 255, 0.8) !important;
1768
- border: none !important;
1769
- border-radius: 8px 8px 0 0 !important;
1770
- margin-right: 4px !important;
1771
- }
1772
- .main-tabs > div.tab-nav > button.selected {
1773
- background: linear-gradient(45deg, #0084ff, #00a3ff) !important;
1774
- color: white !important;
1775
- }
1776
- .main-tabs {
1777
- margin-top: -20px !important;
1778
- border-radius: 0 0 15px 15px !important;
1779
- box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
1780
- }
1781
-
1782
- /* MOUSE ์ธํ„ฐํŽ˜์ด์Šค ์Šคํƒ€์ผ */
1783
- .left_header {
1784
- text-align: center;
1785
- margin-bottom: 20px;
1786
- }
1787
- .right_panel {
1788
- background: white;
1789
- border-radius: 15px;
1790
- padding: 20px;
1791
- box-shadow: 0 4px 15px rgba(0,0,0,0.1);
1792
- height: calc(100vh - 100px); /* ๋†’์ด ์กฐ์ • */
1793
- min-height: 800px; /* ์ตœ์†Œ ๋†’์ด ์„ค์ • */
1794
- }
1795
- .setting-buttons {
1796
- margin-bottom: 15px;
1797
- }
1798
- .render_header {
1799
- background: #f5f5f5;
1800
- padding: 10px;
1801
- border-radius: 8px;
1802
- margin-bottom: 15px;
1803
- }
1804
- .header_btn {
1805
- display: inline-block;
1806
- width: 12px;
1807
- height: 12px;
1808
- border-radius: 50%;
1809
- margin-right: 8px;
1810
- background: #ddd;
1811
- }
1812
- .html_content {
1813
- height: calc(100vh - 200px); /* ๋†’์ด ์กฐ์ • */
1814
- min-height: 700px; /* ์ตœ์†Œ ๋†’์ด ์„ค์ • */
1815
- border: 1px solid #eee;
1816
- border-radius: 8px;
1817
- overflow: hidden;
1818
- }
1819
-
1820
- /* ์ž…๋ ฅ ์˜์—ญ ๋†’์ด ์กฐ์ • */
1821
- .ant-input-textarea-large textarea {
1822
- height: 400px !important; /* ์ž…๋ ฅ์ฐฝ ๋†’์ด ์ฆ๊ฐ€ */
1823
- min-height: 400px !important;
1824
- }
1825
-
1826
- /* ์Šคํฌ๋กค๋ฐ” ์Šคํƒ€์ผ๋ง */
1827
- .html_content::-webkit-scrollbar {
1828
- width: 8px;
1829
- }
1830
- .html_content::-webkit-scrollbar-track {
1831
- background: #f1f1f1;
1832
- border-radius: 4px;
1833
- }
1834
- .html_content::-webkit-scrollbar-thumb {
1835
- background: #888;
1836
- border-radius: 4px;
1837
- }
1838
- .html_content::-webkit-scrollbar-thumb:hover {
1839
- background: #555;
1840
- }
1841
-
1842
- /* ๋ฐ˜์‘ํ˜• ๋†’์ด ์กฐ์ • */
1843
- @media screen and (max-height: 900px) {
1844
- .right_panel {
1845
- height: calc(100vh - 80px);
1846
- min-height: 600px;
1847
- }
1848
- .html_content {
1849
- height: calc(100vh - 160px);
1850
- min-height: 500px;
1851
- }
1852
- .ant-input-textarea-large textarea {
1853
- height: 300px !important;
1854
- min-height: 300px !important;
1855
- }
1856
- }
1857
- """, theme=theme)
1858
 
1859
  with demo:
1860
  with gr.Tabs(elem_classes="main-tabs") as tabs:
 
1760
  return None, gr.update(active_key="empty")
1761
 
1762
  demo = gr.Blocks(css="""
1763
+ /* ๋ฉ”์ธ ํƒญ ์Šคํƒ€์ผ - ํ•ต์‹ฌ ์Šคํƒ€์ผ๋งŒ ์œ ์ง€ */
1764
+ .main-tabs > div.tab-nav > button {
1765
+ font-size: 1.1em !important;
1766
+ padding: 0.5em 1em !important;
1767
+ background: rgba(255, 255, 255, 0.8) !important;
1768
+ border: none !important;
1769
+ border-radius: 8px 8px 0 0 !important;
1770
+ margin-right: 4px !important;
1771
+ }
1772
+ .main-tabs > div.tab-nav > button.selected {
1773
+ background: linear-gradient(45deg, #0084ff, #00a3ff) !important;
1774
+ color: white !important;
1775
+ }
1776
+ .main-tabs {
1777
+ margin-top: -20px !important;
1778
+ border-radius: 0 0 15px 15px !important;
1779
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
1780
+ }
1781
+ """, theme=theme)
1782
+
1783
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1784
 
1785
  with demo:
1786
  with gr.Tabs(elem_classes="main-tabs") as tabs: