Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -888,6 +888,11 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
|
|
| 888 |
font-size: 0.9rem;
|
| 889 |
margin-top: 0.5rem;
|
| 890 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 891 |
</style>
|
| 892 |
|
| 893 |
<div class="app-header">
|
|
@@ -966,11 +971,11 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
|
|
| 966 |
|
| 967 |
# ── (2) 입력창 ──
|
| 968 |
with antd.Flex(vertical=True, gap="middle", wrap=True, elem_classes="panel input-panel"):
|
|
|
|
| 969 |
input_text = antd.InputTextarea(
|
| 970 |
size="large",
|
| 971 |
allow_clear=True,
|
| 972 |
placeholder=random.choice(DEMO_LIST)['description'],
|
| 973 |
-
rows=10, # 입력창 높이 증가
|
| 974 |
max_length=100000 # 입력 최대 길이 증가
|
| 975 |
)
|
| 976 |
gr.HTML('<div class="help-text">💡 원하는 게임의 설명을 입력하세요. 예: "Create a platformer game with jumping mechanics"</div>')
|
|
|
|
| 888 |
font-size: 0.9rem;
|
| 889 |
margin-top: 0.5rem;
|
| 890 |
}
|
| 891 |
+
|
| 892 |
+
/* 텍스트 영역 높이 조정 */
|
| 893 |
+
.ant-input-textarea-large textarea {
|
| 894 |
+
min-height: 200px !important;
|
| 895 |
+
}
|
| 896 |
</style>
|
| 897 |
|
| 898 |
<div class="app-header">
|
|
|
|
| 971 |
|
| 972 |
# ── (2) 입력창 ──
|
| 973 |
with antd.Flex(vertical=True, gap="middle", wrap=True, elem_classes="panel input-panel"):
|
| 974 |
+
# rows 파라미터를 사용하지 않고 CSS로 높이 조정
|
| 975 |
input_text = antd.InputTextarea(
|
| 976 |
size="large",
|
| 977 |
allow_clear=True,
|
| 978 |
placeholder=random.choice(DEMO_LIST)['description'],
|
|
|
|
| 979 |
max_length=100000 # 입력 최대 길이 증가
|
| 980 |
)
|
| 981 |
gr.HTML('<div class="help-text">💡 원하는 게임의 설명을 입력하세요. 예: "Create a platformer game with jumping mechanics"</div>')
|