ParthSadaria commited on
Commit
df4f58c
·
verified ·
1 Parent(s): 59dc3e1

Update playground.html

Browse files
Files changed (1) hide show
  1. playground.html +135 -5
playground.html CHANGED
@@ -349,6 +349,139 @@
349
  background-color: #555;
350
  color: white;
351
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  </style>
353
  </head>
354
 
@@ -361,13 +494,13 @@
361
  <option value="gpt-4o-mini">GPT-4o Mini</option>
362
  <option value="gpt-4o">GPT-4o</option>
363
  <option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
 
364
  <option value="claude-3-haiku">Claude 3 Haiku</option>
365
  <option value="llama-3.1-8b">Llama 3.1 8B</option>
366
  <option value="llama-3.1-70b">Llama 3.1 70B</option>
367
  <option value="llama-3.1-405b">Llama 3.1 405b</option>
368
  <option value="gemini-1.5-flash">Gemini 1.5 Flash</option>
369
  <option value="gemini-pro">Gemini Pro</option>
370
- <option value="searchgpt">SearchGPT(Realtime Stuff)</option>
371
  <option value="mixtral-8x7b">Mixtral 8x7b</option>
372
  <option value="command-r">Command-R</option>
373
  <option value="command">Command</option>
@@ -663,8 +796,5 @@
663
  clearChatButton.addEventListener('click', clearChat);
664
  </script>
665
  </body>
666
- <!-- random
667
- comments
668
- to get
669
- 669 lines -->
670
  </html>
 
349
  background-color: #555;
350
  color: white;
351
  }
352
+ @media screen and (max-width: 768px) {
353
+ body {
354
+ align-items: flex-start;
355
+ padding: 10px;
356
+ }
357
+
358
+ .chat-wrapper {
359
+ max-width: 100%;
360
+ height: 100vh;
361
+ border-radius: 16px;
362
+ margin: 0;
363
+ }
364
+
365
+ .chat-header {
366
+ padding: 10px 15px;
367
+ height: 50px;
368
+ }
369
+
370
+ .chat-messages {
371
+ padding: 10px;
372
+ gap: 10px;
373
+ }
374
+
375
+ .message {
376
+ max-width: 90%;
377
+ font-size: 13px;
378
+ padding: 10px 15px;
379
+ }
380
+
381
+ .chat-input {
382
+ padding: 10px;
383
+ height: 70px;
384
+ }
385
+
386
+ .chat-input input {
387
+ padding: 10px 14px;
388
+ padding-right: 40px;
389
+ font-size: 13px;
390
+ }
391
+
392
+ .send-icon {
393
+ width: 35px;
394
+ height: 35px;
395
+ }
396
+
397
+ .initial-input {
398
+ padding: 15px;
399
+ }
400
+
401
+ .initial-input h2 {
402
+ font-size: 20px;
403
+ }
404
+
405
+ .initial-input input {
406
+ padding: 12px 20px;
407
+ font-size: 14px;
408
+ }
409
+
410
+ .header-actions {
411
+ gap: 5px;
412
+ }
413
+
414
+ .model-select,
415
+ .clear-chat {
416
+ padding: 8px 10px;
417
+ font-size: 12px;
418
+ }
419
+
420
+ .watermark {
421
+ font-size: 8px;
422
+ }
423
+ }
424
+
425
+ @media screen and (max-width: 480px) {
426
+ .chat-wrapper {
427
+ border-radius: 12px;
428
+ }
429
+
430
+ .message {
431
+ max-width: 95%;
432
+ font-size: 12px;
433
+ padding: 8px 12px;
434
+ }
435
+
436
+ .chat-input input {
437
+ font-size: 12px;
438
+ }
439
+
440
+ .header-actions {
441
+ flex-direction: column;
442
+ gap: 5px;
443
+ }
444
+
445
+ .model-select,
446
+ .clear-chat {
447
+ width: 100%;
448
+ text-align: center;
449
+ }
450
+ }
451
+
452
+ /* Additional responsive adjustments to existing CSS */
453
+ * {
454
+ -webkit-tap-highlight-color: transparent;
455
+ }
456
+
457
+ body {
458
+ touch-action: manipulation;
459
+ }
460
+
461
+ input, button {
462
+ -webkit-appearance: none;
463
+ -moz-appearance: none;
464
+ appearance: none;
465
+ }
466
+
467
+ @media (hover: hover) {
468
+ .send-icon:hover {
469
+ background-color: var(--accent-color);
470
+ transform: translateY(-50%) scale(1.05);
471
+ border-radius: 15px;
472
+ }
473
+ }
474
+
475
+ @media (pointer: coarse) {
476
+ .send-icon {
477
+ width: 45px;
478
+ height: 45px;
479
+ }
480
+
481
+ .chat-input input {
482
+ font-size: 16px; /* Larger font for touch devices */
483
+ }
484
+ }
485
  </style>
486
  </head>
487
 
 
494
  <option value="gpt-4o-mini">GPT-4o Mini</option>
495
  <option value="gpt-4o">GPT-4o</option>
496
  <option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
497
+ <option value="searchgpt">SearchGPT(Realtime Stuff)</option>
498
  <option value="claude-3-haiku">Claude 3 Haiku</option>
499
  <option value="llama-3.1-8b">Llama 3.1 8B</option>
500
  <option value="llama-3.1-70b">Llama 3.1 70B</option>
501
  <option value="llama-3.1-405b">Llama 3.1 405b</option>
502
  <option value="gemini-1.5-flash">Gemini 1.5 Flash</option>
503
  <option value="gemini-pro">Gemini Pro</option>
 
504
  <option value="mixtral-8x7b">Mixtral 8x7b</option>
505
  <option value="command-r">Command-R</option>
506
  <option value="command">Command</option>
 
796
  clearChatButton.addEventListener('click', clearChat);
797
  </script>
798
  </body>
799
+ <!-- random comments to get 800 lines -->
 
 
 
800
  </html>