dev-yuje commited on
Commit
aedcd48
Β·
1 Parent(s): f2d1de7

fix: resolve chatbot collapsed placeholder and tighten sidebar layout

Browse files
Files changed (1) hide show
  1. src/utils/ui_templates.py +11 -8
src/utils/ui_templates.py CHANGED
@@ -42,20 +42,22 @@ body, .gradio-container {
42
  .sidebar-container {
43
  border: 1px solid #e2e8f0 !important;
44
  border-radius: 12px !important;
45
- padding: 24px 20px !important;
46
  background: #ffffff !important;
47
  min-height: 700px !important;
48
  height: 100% !important;
49
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
50
  display: flex !important;
51
  flex-direction: column !important;
 
 
52
  }
53
 
54
  /* ── ꡬ뢄선 ── */
55
  .divider {
56
  border: none;
57
  border-top: 1px solid #e2e8f0;
58
- margin: 14px 0;
59
  }
60
 
61
  /* ── νŒ¨λ„ 라벨 (μ„Ήμ…˜ 제λͺ©) ── */
@@ -65,7 +67,8 @@ body, .gradio-container {
65
  color: #64748b;
66
  text-transform: uppercase;
67
  letter-spacing: 0.07em;
68
- margin-bottom: 10px;
 
69
  }
70
 
71
  /* ── 상단 2 μΉ΄λ“œ (κ°€λ‘œ 배치) ── */
@@ -73,7 +76,7 @@ body, .gradio-container {
73
  display: grid;
74
  grid-template-columns: repeat(2, 1fr);
75
  gap: 10px;
76
- margin-bottom: 12px;
77
  }
78
  .top-card {
79
  background: #f8fafc !important;
@@ -134,7 +137,7 @@ body, .gradio-container {
134
  display: flex;
135
  flex-wrap: wrap;
136
  gap: 6px;
137
- margin-bottom: 14px;
138
  }
139
  .keyword-badge {
140
  display: inline-block;
@@ -157,7 +160,7 @@ body, .gradio-container {
157
  display: flex;
158
  flex-wrap: wrap;
159
  gap: 6px;
160
- margin-bottom: 14px;
161
  }
162
  .company-badge {
163
  display: inline-block;
@@ -385,11 +388,11 @@ div:has(> [data-testid="submit-button"]),
385
  }
386
 
387
  /* ── 챗봇 νƒ­/라벨 μˆ¨κΉ€ ── */
388
- .chatbot > div:first-child, [class*="chatbot"] > div:first-child,
389
  .chatbot-label, div[class*="chatbot"] .label,
390
  [data-testid="chatbot"] .label, .chatbot-header,
391
  .gr-panel-title, .gr-chatbot-label,
392
- [data-testid="chatbot"] > div:first-child,
 
393
  label.svelte-1ipelgc, span.svelte-1ipelgc {
394
  display: none !important;
395
  }
 
42
  .sidebar-container {
43
  border: 1px solid #e2e8f0 !important;
44
  border-radius: 12px !important;
45
+ padding: 16px 16px !important;
46
  background: #ffffff !important;
47
  min-height: 700px !important;
48
  height: 100% !important;
49
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
50
  display: flex !important;
51
  flex-direction: column !important;
52
+ justify-content: flex-start !important;
53
+ gap: 8px !important;
54
  }
55
 
56
  /* ── ꡬ뢄선 ── */
57
  .divider {
58
  border: none;
59
  border-top: 1px solid #e2e8f0;
60
+ margin: 6px 0 !important;
61
  }
62
 
63
  /* ── νŒ¨λ„ 라벨 (μ„Ήμ…˜ 제λͺ©) ── */
 
67
  color: #64748b;
68
  text-transform: uppercase;
69
  letter-spacing: 0.07em;
70
+ margin-bottom: 4px !important;
71
+ margin-top: 2px !important;
72
  }
73
 
74
  /* ── 상단 2 μΉ΄λ“œ (κ°€λ‘œ 배치) ── */
 
76
  display: grid;
77
  grid-template-columns: repeat(2, 1fr);
78
  gap: 10px;
79
+ margin-bottom: 4px !important;
80
  }
81
  .top-card {
82
  background: #f8fafc !important;
 
137
  display: flex;
138
  flex-wrap: wrap;
139
  gap: 6px;
140
+ margin-bottom: 4px !important;
141
  }
142
  .keyword-badge {
143
  display: inline-block;
 
160
  display: flex;
161
  flex-wrap: wrap;
162
  gap: 6px;
163
+ margin-bottom: 4px !important;
164
  }
165
  .company-badge {
166
  display: inline-block;
 
388
  }
389
 
390
  /* ── 챗봇 νƒ­/라벨 μˆ¨κΉ€ ── */
 
391
  .chatbot-label, div[class*="chatbot"] .label,
392
  [data-testid="chatbot"] .label, .chatbot-header,
393
  .gr-panel-title, .gr-chatbot-label,
394
+ [data-testid="chatbot"] > label,
395
+ div[class*="chatbot"] > label,
396
  label.svelte-1ipelgc, span.svelte-1ipelgc {
397
  display: none !important;
398
  }