ParthSadaria commited on
Commit
e8163c9
·
verified ·
1 Parent(s): 1b70dd6

Update playground.html

Browse files
Files changed (1) hide show
  1. playground.html +20 -58
playground.html CHANGED
@@ -207,29 +207,15 @@
207
  border-radius: 15px;
208
  }
209
 
210
- .chat-wrapper {
211
- position: relative;
212
- width: 100%;
213
- max-width: 800px;
214
- height: 90vh;
215
- background-color: var(--bg-darker);
216
- border-radius: 24px;
217
- overflow: hidden;
218
- box-shadow: 0 20px 50px rgba(5, 5, 10, 0.7);
219
- display: flex;
220
- flex-direction: column;
221
- }
222
-
223
  .chat-container {
224
- display: none;
225
  flex-direction: column;
226
- flex: 1;
227
- position: relative;
228
- overflow: hidden;
229
  }
230
 
 
231
  .chat-messages {
232
- flex: 1;
233
  overflow-y: auto;
234
  padding: 20px;
235
  display: flex;
@@ -238,39 +224,6 @@
238
  background-color: var(--bg-dark);
239
  font-family: 'JetBrains Mono', monospace;
240
  overscroll-behavior: contain;
241
- position: absolute;
242
- top: 0;
243
- left: 0;
244
- right: 0;
245
- bottom: 80px; /* Space for input area */
246
- }
247
-
248
- .chat-input {
249
- position: absolute;
250
- bottom: 0;
251
- left: 0;
252
- right: 0;
253
- display: flex;
254
- gap: 12px;
255
- padding: 16px;
256
- background-color: var(--bg-darker);
257
- border-top: 1px solid var(--border-color);
258
- z-index: 10;
259
- }
260
-
261
- /* Custom Scrollbar for Chat Messages */
262
- .chat-messages::-webkit-scrollbar {
263
- width: 8px;
264
- }
265
-
266
- .chat-messages::-webkit-scrollbar-track {
267
- background: transparent;
268
- }
269
-
270
- .chat-messages::-webkit-scrollbar-thumb {
271
- background-color: var(--primary-blue);
272
- border-radius: 20px;
273
- }
274
  }
275
 
276
  .message {
@@ -316,13 +269,22 @@
316
  border: 1px solid var(--border-color);
317
  }
318
 
319
- .chat-input {
320
- display: flex;
321
- gap: 12px;
322
- padding: 16px;
323
- background-color: var(--bg-darker);
324
- border-top: 1px solid var(--border-color);
325
- }
 
 
 
 
 
 
 
 
 
326
 
327
  .chat-input button {
328
  background-color: var(--accent-color);
 
207
  border-radius: 15px;
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  .chat-container {
211
+ display: flex;
212
  flex-direction: column;
213
+ height: 100%;
 
 
214
  }
215
 
216
+ /* Make chat-messages scrollable with flex-grow to take remaining space */
217
  .chat-messages {
218
+ flex-grow: 1;
219
  overflow-y: auto;
220
  padding: 20px;
221
  display: flex;
 
224
  background-color: var(--bg-dark);
225
  font-family: 'JetBrains Mono', monospace;
226
  overscroll-behavior: contain;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  }
228
 
229
  .message {
 
269
  border: 1px solid var(--border-color);
270
  }
271
 
272
+ chat-input {
273
+ display: flex;
274
+ gap: 12px;
275
+ padding: 16px;
276
+ background-color: var(--bg-darker);
277
+ border-top: 1px solid var(--border-color);
278
+ position: sticky;
279
+ bottom: 0;
280
+ z-index: 1; /* Ensure it stays above messages */
281
+ background-color: var(--bg-darker);
282
+ }
283
+
284
+ /* Optional: Adjust input field style for smooth UX */
285
+ .chat-input input {
286
+ flex-grow: 1;
287
+ }
288
 
289
  .chat-input button {
290
  background-color: var(--accent-color);