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

Update playground.html

Browse files
Files changed (1) hide show
  1. playground.html +24 -34
playground.html CHANGED
@@ -13,7 +13,7 @@
13
  <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
14
 
15
  <style>
16
- @import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Protest+Revolution&display=swap');
17
 
18
  :root {
19
  --bg-dark: #0a0a0f;
@@ -207,24 +207,23 @@
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;
222
- flex-direction: column;
223
- gap: 16px;
224
- background-color: var(--bg-dark);
225
- font-family: 'JetBrains Mono', monospace;
226
- overscroll-behavior: contain;
227
- }
228
 
229
  .message {
230
  max-width: 80%;
@@ -269,22 +268,13 @@
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);
 
13
  <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
14
 
15
  <style>
16
+ @import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Protest+Revolution&display=swap');
17
 
18
  :root {
19
  --bg-dark: #0a0a0f;
 
207
  border-radius: 15px;
208
  }
209
 
210
+ .chat-container {
211
+ display: none;
212
+ flex-direction: column;
213
+ height: 100%;
214
+ }
215
 
216
+ .chat-messages {
217
+ flex: 1;
218
+ overflow-y: auto;
219
+ padding: 20px;
220
+ display: flex;
221
+ flex-direction: column;
222
+ gap: 16px;
223
+ background-color: var(--bg-dark);
224
+ font-family: 'JetBrains Mono', monospace;
225
+ overscroll-behavior: contain;
226
+ }
 
227
 
228
  .message {
229
  max-width: 80%;
 
268
  border: 1px solid var(--border-color);
269
  }
270
 
271
+ .chat-input {
272
+ display: flex;
273
+ gap: 12px;
274
+ padding: 16px;
275
+ background-color: var(--bg-darker);
276
+ border-top: 1px solid var(--border-color);
277
+ }
 
 
 
 
 
 
 
 
 
278
 
279
  .chat-input button {
280
  background-color: var(--accent-color);