Spaces:
Sleeping
Sleeping
ใ
ใ
ใ
commited on
Commit ยท
c61475f
1
Parent(s): 06387ea
Fix: Improve Session ID input field layout - Add elem_id for precise CSS targeting - Set container=True to ensure label visibility - Update CSS selectors to use elem_id-based targeting - Improve width and box-sizing properties for better layout
Browse files- CodeWeaver/ui/app.py +13 -5
CodeWeaver/ui/app.py
CHANGED
|
@@ -45,11 +45,17 @@ CSS = """
|
|
| 45 |
padding-top: 1.5rem;
|
| 46 |
}
|
| 47 |
.message { font-size: 1.1rem; line-height: 1.6; }
|
| 48 |
-
/* Session ID ์
๋ ฅ ํ๋
|
| 49 |
-
|
| 50 |
-
textarea[placeholder*="์ธ์
ID"] {
|
| 51 |
-
min-width: 800px !important;
|
| 52 |
width: 100% !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
/* ๋ฉ์ถค ๋ฒํผ ์จ๊ธฐ๊ธฐ ๋ฐ ํด๋ฆญ ๋นํ์ฑํ */
|
| 55 |
button[aria-label*="Stop"],
|
|
@@ -167,7 +173,9 @@ def create_demo() -> gr.Blocks:
|
|
| 167 |
value=str(uuid.uuid4()),
|
| 168 |
interactive=True,
|
| 169 |
placeholder="์ธ์
ID๋ฅผ ์
๋ ฅํ๊ฑฐ๋ ๊ทธ๋๋ก ๋์ธ์",
|
| 170 |
-
|
|
|
|
|
|
|
| 171 |
)
|
| 172 |
|
| 173 |
# 3. ์ฑํ
์ธํฐํ์ด์ค
|
|
|
|
| 45 |
padding-top: 1.5rem;
|
| 46 |
}
|
| 47 |
.message { font-size: 1.1rem; line-height: 1.6; }
|
| 48 |
+
/* Session ID ์
๋ ฅ ํ๋ - elem_id๋ก ์ ํํ ํ๊ฒํ
*/
|
| 49 |
+
#session_id_input {
|
|
|
|
|
|
|
| 50 |
width: 100% !important;
|
| 51 |
+
min-width: 0 !important;
|
| 52 |
+
max-width: 100% !important;
|
| 53 |
+
box-sizing: border-box !important;
|
| 54 |
+
}
|
| 55 |
+
#session_id_input input,
|
| 56 |
+
#session_id_input textarea {
|
| 57 |
+
width: 100% !important;
|
| 58 |
+
min-width: 0 !important;
|
| 59 |
}
|
| 60 |
/* ๋ฉ์ถค ๋ฒํผ ์จ๊ธฐ๊ธฐ ๋ฐ ํด๋ฆญ ๋นํ์ฑํ */
|
| 61 |
button[aria-label*="Stop"],
|
|
|
|
| 173 |
value=str(uuid.uuid4()),
|
| 174 |
interactive=True,
|
| 175 |
placeholder="์ธ์
ID๋ฅผ ์
๋ ฅํ๊ฑฐ๋ ๊ทธ๋๋ก ๋์ธ์",
|
| 176 |
+
elem_id="session_id_input", # CSS ํ๊ฒํ
์ฉ
|
| 177 |
+
container=True, # ๋ ์ด๋ธ ํ์ ๋ณด์ฅ
|
| 178 |
+
scale=10 # Row ๋ด์์ ์๋์ ํฌ๊ธฐ
|
| 179 |
)
|
| 180 |
|
| 181 |
# 3. ์ฑํ
์ธํฐํ์ด์ค
|