code-slicer commited on
Commit
449cd35
ยท
verified ยท
1 Parent(s): 0fe84e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -11
app.py CHANGED
@@ -194,31 +194,44 @@ COLOR = "#F1F1F1"
194
 
195
  st.markdown(f"""
196
  <style>
197
- /* ํ—ค๋”/์•ฑ ์ปจํ…Œ์ด๋„ˆ๋Š” ํˆฌ๋ช…ํ™” โ†’ ์ƒ๋‹จ ํฐ ๋  ๋ฐฉ์ง€ */
198
  header[data-testid="stHeader"],
199
  [data-testid="stAppViewContainer"],
200
- main, section.main {{ background: transparent !important; }}
201
 
202
- /* ํ˜น์‹œ ๋‚จ์•„์žˆ์„ ์ˆ˜ ์žˆ๋Š” ๋ฐฐ๊ฒฝ ๋ ˆ์ด์–ด ์ œ๊ฑฐ */
203
  .stApp::before, .stApp::after,
204
- .block-container::before, .block-container::after {{ content:none !important; }}
205
 
206
- /* 1) ์ค‘์•™ ์ปฌ๋Ÿผ(.block-container)์—๋งŒ ๋‹จ์ƒ‰ ๋ฐฐ๊ฒฝ */
207
- section.main .block-container {{
 
208
  position: relative;
209
- min-height: 100vh; /* ํ™”๋ฉด ๋๊นŒ์ง€ ์ฑ„์›€ */
210
  background: {COLOR} !important;
211
- }}
212
 
213
- /* 2) ๋‚ด๋ถ€ ๋ž˜ํผ๋“ค๋„ ์ปฌ๋Ÿฌ ํ†ต์ผ โ†’ ๊ฒฝ๊ณ„/๋Š๊น€ ์ œ๊ฑฐ */
214
  section.main .block-container [data-testid="stVerticalBlock"],
215
  section.main .block-container [data-testid="stHorizontalBlock"],
216
  section.main .block-container [data-testid="stForm"],
217
- section.main .block-container [data-testid="stMarkdownContainer"] {{
 
 
 
 
218
  background: {COLOR} !important;
219
  box-shadow: none !important;
220
  border: 0 !important;
221
- }}
 
 
 
 
 
 
 
 
222
  </style>
223
  """, unsafe_allow_html=True)
224
 
 
194
 
195
  st.markdown(f"""
196
  <style>
197
+ /* ์ƒ๋‹จ/์ปจํ…Œ์ด๋„ˆ๋Š” ํˆฌ๋ช… ์ฒ˜๋ฆฌ(์œ—๋ถ€๋ถ„ ํฐ ๋  ๋ฐฉ์ง€) */
198
  header[data-testid="stHeader"],
199
  [data-testid="stAppViewContainer"],
200
+ main, section.main { background: transparent !important; }
201
 
202
+ /* ์ž”์—ฌ ๋ ˆ์ด์–ด ์ œ๊ฑฐ */
203
  .stApp::before, .stApp::after,
204
+ .block-container::before, .block-container::after { content:none !important; }
205
 
206
+ /* โœ… ์ค‘์•™ ์ปฌ๋Ÿผ ๋ฐฐ๊ฒฝ (ํด๋ž˜์Šค/๋ฐ์ดํ„ฐ-testid ๋ชจ๋‘ ๋Œ€์‘) */
207
+ section.main .block-container,
208
+ section.main div[data-testid="block-container"] {
209
  position: relative;
210
+ min-height: 100vh;
211
  background: {COLOR} !important;
212
+ }
213
 
214
+ /* โœ… ์ค‘์•™ ์ปฌ๋Ÿผ ๋‚ด๋ถ€ ๋ž˜ํผ๋“ค๋„ ๋™์ผ ์ƒ‰์œผ๋กœ ํ†ต์ผ โ†’ ๊ฒฝ๊ณ„/๋Š๊น€ ์ œ๊ฑฐ */
215
  section.main .block-container [data-testid="stVerticalBlock"],
216
  section.main .block-container [data-testid="stHorizontalBlock"],
217
  section.main .block-container [data-testid="stForm"],
218
+ section.main .block-container [data-testid="stMarkdownContainer"],
219
+ section.main div[data-testid="block-container"] [data-testid="stVerticalBlock"],
220
+ section.main div[data-testid="block-container"] [data-testid="stHorizontalBlock"],
221
+ section.main div[data-testid="block-container"] [data-testid="stForm"],
222
+ section.main div[data-testid="block-container"] [data-testid="stMarkdownContainer"] {
223
  background: {COLOR} !important;
224
  box-shadow: none !important;
225
  border: 0 !important;
226
+ }
227
+
228
+ /* ์ž…๋ ฅ์ฐฝ ๋ž˜ํผ๋Š” ํ†ค ๋‹จ์ ˆ ๋ฐฉ์ง€์šฉ ํˆฌ๋ช… ์ฒ˜๋ฆฌ(์ฑ„ํŒ…/์ผ๋ฐ˜ ๋‘˜ ๋‹ค) */
229
+ div[data-testid="stChatInput"],
230
+ div[data-testid="stTextInput"] {
231
+ background: transparent !important;
232
+ box-shadow: none !important;
233
+ border: 0 !important;
234
+ }
235
  </style>
236
  """, unsafe_allow_html=True)
237