ใ……ใ…Žใ…‡ 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
Files changed (1) hide show
  1. 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
- input[type="text"][placeholder*="์„ธ์…˜ ID"],
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
- scale=10
 
 
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. ์ฑ„ํŒ… ์ธํ„ฐํŽ˜์ด์Šค