@touchvue/chat 1.0.0-beta.38 → 1.0.0-beta.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/es/package.json.mjs +1 -1
  2. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs +3 -5
  3. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs.map +1 -1
  4. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs +2 -4
  5. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs.map +1 -1
  6. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs +11 -13
  7. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs.map +1 -1
  8. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +7 -7
  9. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
  10. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +60 -5
  11. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -1
  12. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +10 -1
  13. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  14. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +31 -25
  15. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  16. package/es/packages/components/touchchat/src/index.vue2.mjs +16 -11
  17. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  18. package/es/packages/components/touchchat/utils/a2aService.mjs +19 -4
  19. package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -1
  20. package/lib/package.json.js +1 -1
  21. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js +3 -5
  22. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js.map +1 -1
  23. package/lib/packages/components/touchchat/component/Screenshot.vue2.js +2 -4
  24. package/lib/packages/components/touchchat/component/Screenshot.vue2.js.map +1 -1
  25. package/lib/packages/components/touchchat/component/VoiceView.vue2.js +11 -13
  26. package/lib/packages/components/touchchat/component/VoiceView.vue2.js.map +1 -1
  27. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +6 -6
  28. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
  29. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +60 -5
  30. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -1
  31. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +10 -1
  32. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  33. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +31 -25
  34. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  35. package/lib/packages/components/touchchat/src/index.vue2.js +16 -11
  36. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  37. package/lib/packages/components/touchchat/utils/a2aService.js +19 -4
  38. package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -1
  39. package/package.json +1 -1
  40. package/theme/components/index.css +73 -121
  41. package/theme/font/iconfont.woff +0 -0
  42. package/theme/font/iconfont.woff2 +0 -0
  43. package/theme/index.css +73 -121
  44. package/theme/skin/default.css +73 -121
@@ -313,23 +313,21 @@
313
313
  --edit-input-bg: none;
314
314
  --edit-input-lh: 1.5em;
315
315
  --edit-input-padding: 1em;
316
- --edit-submit-padding: 0 0.5em 0.5em;
316
+ --edit-submit-padding: 0;
317
317
  --edit-submit-gap: 0.5em;
318
- --edit-attach-width: 2.5em;
319
- --edit-attach-height: 2.5em;
320
- --edit-attach-bg: #fff;
321
- --edit-attach-border: 1px solid #ddd;
322
- --edit-attach-radius: 0.25em;
323
- --edit-attach-color: inherit;
324
- --edit-attach-size: 1em;
325
- --edit-attach-family: 'touchchat-icon';
326
- --edit-attach-content: '\e610';
327
- --edit-attach-hover-bg: rgba(0, 0, 0, 0.1);
328
- --edit-attach-hover-color: var(--edit-attach-color);
329
- --edit-attach-hover-border: #0062d6;
330
- --edit-attach-active-bg: rgba(0, 0, 0, 0.3);
331
- --edit-attach-active-color: var(--edit-attach-color);
332
- --edit-attach-active-border: var(--edit-attach-border);
318
+ --edit-button-width: 2.5em;
319
+ --edit-button-height: 2.5em;
320
+ --edit-button-bg: #fff;
321
+ --edit-button-border: 1px solid #ddd;
322
+ --edit-button-radius: 0.25em;
323
+ --edit-button-color: inherit;
324
+ --edit-button-size: 1em;
325
+ --edit-button-hover-bg: rgba(0, 0, 0, 0.1);
326
+ --edit-button-hover-color: var(--edit-button-color);
327
+ --edit-button-hover-border: #0062d6;
328
+ --edit-button-active-bg: rgba(0, 0, 0, 0.3);
329
+ --edit-button-active-color: var(--edit-button-color);
330
+ --edit-button-active-border: var(--edit-button-border);
333
331
  --edit-think-height: 2.5em;
334
332
  --edit-think-padding: 0 1em;
335
333
  --edit-think-bg: #fff;
@@ -356,50 +354,16 @@
356
354
  --edit-think-on-active-bg: var(--edit-think-active-bg);
357
355
  --edit-think-on-active-color: var(--edit-think-on-color);
358
356
  --edit-think-on-active-border: var(--edit-think-on-border);
359
- --edit-delete-height: 2.5em;
360
- --edit-delete-padding: 0 1em;
361
- --edit-delete-bg: #fff;
362
- --edit-delete-border: 1px solid #ddd;
363
- --edit-delete-radius: 0.25em;
364
- --edit-delete-color: inherit;
365
- --edit-delete-gap: 0.5em;
366
- --edit-delete-size: 1em;
367
- --edit-delete-icon-size: var(--edit-delete-size);
357
+ --edit-attach-family: 'touchchat-icon';
358
+ --edit-attach-content: '\e73a';
368
359
  --edit-delete-family: 'touchchat-icon';
369
360
  --edit-delete-content: '\e73d';
370
- --edit-screenshot-height: 2.5em;
371
- --edit-screenshot-padding: 0 1em;
372
- --edit-screenshot-bg: #fff;
373
- --edit-screenshot-border: 1px solid #ddd;
374
- --edit-screenshot-radius: 0.25em;
375
- --edit-screenshot-color: inherit;
376
- --edit-screenshot-gap: 0.5em;
377
- --edit-screenshot-size: 1em;
378
- --edit-screenshot-icon-size: var(--edit-screenshot-size);
379
361
  --edit-screenshot-family: 'touchchat-icon';
380
362
  --edit-screenshot-content: '\e73c';
381
- --edit-voice-height: 2.5em;
382
- --edit-voice-padding: 0 1em;
383
- --edit-voice-bg: #fff;
384
- --edit-voice-border: 1px solid #ddd;
385
- --edit-voice-radius: 0.25em;
386
- --edit-voice-color: inherit;
387
- --edit-voice-gap: 0.5em;
388
- --edit-voice-size: 1em;
389
- --edit-voice-icon-size: var(--edit-voice-size);
390
363
  --edit-voice-family: 'touchchat-icon';
391
364
  --edit-voice-content: '\e73b';
392
- --edit-record-height: 2.5em;
393
- --edit-record-padding: 0 1em;
394
- --edit-record-bg: #fff;
395
- --edit-record-border: 1px solid #ddd;
396
- --edit-record-radius: 0.25em;
397
- --edit-record-color: inherit;
398
- --edit-record-gap: 0.5em;
399
- --edit-record-size: 1em;
400
- --edit-record-icon-size: var(--edit-record-size);
401
365
  --edit-record-family: 'touchchat-icon';
402
- --edit-record-content: '\e739';
366
+ --edit-record-content: '\ea42';
403
367
  --edit-send-width: 2.5em;
404
368
  --edit-send-height: 2.5em;
405
369
  --edit-send-bg: var(--color-primary);
@@ -423,7 +387,7 @@
423
387
  --edit-stop-color: #fff;
424
388
  --edit-stop-size: 1em;
425
389
  --edit-stop-family: 'touchchat-icon';
426
- --edit-stop-content: '\e60f';
390
+ --edit-stop-content: '\e70c';
427
391
  --edit-stop-hover-bg: #4d4d4d;
428
392
  --edit-stop-hover-color: var(--edit-stop-color);
429
393
  --edit-stop-hover-border: var(--edit-stop-border);
@@ -498,6 +462,7 @@
498
462
  font-size: var(--edit-input-size);
499
463
  }
500
464
  .touchchat-edit-submit {
465
+ padding: var(--edit-submit-padding);
501
466
  display: flex;
502
467
  justify-content: space-between;
503
468
  }
@@ -509,29 +474,29 @@
509
474
  display: inline-flex;
510
475
  gap: var(--edit-submit-gap);
511
476
  }
512
- .touchchat-edit-attach {
513
- border: var(--edit-attach-border);
514
- width: var(--edit-attach-width);
515
- height: var(--edit-attach-height);
516
- background: var(--edit-attach-bg);
477
+ .touchchat-edit-button {
478
+ border: var(--edit-button-border);
479
+ width: var(--edit-button-width);
480
+ height: var(--edit-button-height);
481
+ background: var(--edit-button-bg);
517
482
  display: inline-flex;
518
483
  align-items: center;
519
484
  justify-content: center;
520
- border-radius: var(--edit-attach-radius);
521
- color: var(--edit-attach-color);
485
+ border-radius: var(--edit-button-radius);
486
+ color: var(--edit-button-color);
522
487
  position: relative;
523
488
  }
524
- .touchchat-edit-attach:hover {
525
- background: var(--edit-attach-hover-bg);
526
- color: var(--edit-attach-hover-color);
527
- border: var(--edit-attach-hover-border);
489
+ .touchchat-edit-button:hover {
490
+ background: var(--edit-button-hover-bg);
491
+ color: var(--edit-button-hover-color);
492
+ border: var(--edit-button-hover-border);
528
493
  }
529
- .touchchat-edit-attach:active {
530
- background: var(--edit-attach-active-bg);
531
- color: var(--edit-attach-active-color);
532
- border: var(--edit-attach-active-border);
494
+ .touchchat-edit-button:active {
495
+ background: var(--edit-button-active-bg);
496
+ color: var(--edit-button-active-color);
497
+ border: var(--edit-button-active-border);
533
498
  }
534
- .touchchat-edit-attach.is-dis {
499
+ .touchchat-edit-button.is-dis {
535
500
  opacity: 0.4;
536
501
  pointer-events: none;
537
502
  }
@@ -540,45 +505,41 @@
540
505
  font-family: var(--edit-attach-family);
541
506
  content: var(--edit-attach-content);
542
507
  }
543
- .touchchat-edit-attach-tip {
508
+ .touchchat-edit-tooltip {
544
509
  display: none;
545
510
  position: absolute;
546
511
  bottom: 100%;
547
- left: 0;
512
+ left: 50%;
548
513
  background-color: rgba(0, 0, 0, 0.8);
549
514
  color: white;
550
- padding: 1em;
515
+ padding: 0.5em 1em;
551
516
  border-radius: 0.25em;
552
517
  margin-bottom: 0.5em;
553
- width: 20em;
554
- height: 6em;
555
- }
556
- .touchchat-edit-attach-tip p {
557
- text-align: left;
558
- }
559
- .touchchat-edit-voice-tip {
560
- left: -100%;
561
- width: 6em;
562
- height: auto;
563
- }
564
- .touchchat-edit-voice-tip p {
565
- text-align: center;
566
- }
567
- /* 创建小箭头 */
568
- .touchchat-edit-attach-tip::before,
569
- .touchchat-edit-attach-tip::after {
570
- content: '';
571
- position: absolute;
572
- left: 1.25em;
518
+ white-space: nowrap;
519
+ line-height: 1.5em;
573
520
  transform: translateX(-50%);
574
521
  }
575
- /* 创建小箭头 */
576
- .touchchat-edit-voice-tip::before,
577
- .touchchat-edit-voice-tip::after {
522
+ .touchchat-edit-tooltip::before {
578
523
  content: '';
579
524
  position: absolute;
580
525
  left: 50%;
581
526
  transform: translateX(-50%);
527
+ top: 100%;
528
+ border-width: 0.375em;
529
+ border-style: solid;
530
+ border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
531
+ }
532
+ .touchchat-edit-tooltip.align-left {
533
+ left: 0;
534
+ transform: translateX(0);
535
+ text-align: left;
536
+ }
537
+ .touchchat-edit-tooltip.align-left::before {
538
+ left: 0.875em;
539
+ transform: translateX(0);
540
+ }
541
+ .touchchat-edit-button:hover .touchchat-edit-tooltip {
542
+ display: block;
582
543
  }
583
544
  @keyframes lightUp {
584
545
  0% {
@@ -664,22 +625,6 @@
664
625
  .touchchat-edit-rlvoice-mic-body {
665
626
  animation: shadowBreath 2s ease-in-out infinite;
666
627
  }
667
- /* 小箭头外框 */
668
- .touchchat-edit-attach-tip::before {
669
- top: 100%;
670
- border-width: 0.375em;
671
- border-style: solid;
672
- border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
673
- }
674
- .touchchat-edit-attach-tip::after {
675
- top: calc(100% - 1px);
676
- border-width: 0.375em;
677
- border-style: solid;
678
- border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
679
- }
680
- .touchchat-edit-attach:hover .touchchat-edit-attach-tip {
681
- display: block;
682
- }
683
628
  .touchchat-edit-think {
684
629
  border: var(--edit-think-border);
685
630
  height: var(--edit-think-height);
@@ -731,6 +676,9 @@
731
676
  font-family: var(--edit-delete-family);
732
677
  content: var(--edit-delete-content);
733
678
  }
679
+ .touchchat-edit-screenshot {
680
+ position: relative;
681
+ }
734
682
  .touchchat-edit-screenshot-icon:before {
735
683
  font-size: var(--edit-screenshot-icon-size);
736
684
  font-family: var(--edit-screenshot-family);
@@ -761,6 +709,10 @@
761
709
  justify-content: center;
762
710
  border-radius: var(--edit-send-radius);
763
711
  }
712
+ .touchchat-edit-send[disabled] {
713
+ opacity: 0.5;
714
+ pointer-events: none;
715
+ }
764
716
  .touchchat-edit-send:hover {
765
717
  background: var(--edit-send-hover-bg);
766
718
  color: var(--edit-send-hover-color);
@@ -2148,9 +2100,9 @@ table.touchchat-table tr:hover {
2148
2100
  .file-content-scroll {
2149
2101
  display: flex;
2150
2102
  overflow-x: auto;
2151
- overflow-y: hidden;
2152
2103
  align-items: flex-start;
2153
2104
  gap: var(--file-content-gap);
2105
+ padding: 0.5em 0;
2154
2106
  -webkit-overflow-scrolling: touch;
2155
2107
  -ms-overflow-style: none;
2156
2108
  /* IE 和 Edge */
@@ -2213,10 +2165,10 @@ table.touchchat-table tr:hover {
2213
2165
  }
2214
2166
  .image-file-content .image-file-colse {
2215
2167
  position: absolute;
2216
- right: -0.3125em;
2217
- top: -0.3125em;
2218
- width: 0.625em;
2219
- height: 0.625em;
2168
+ right: -0.4375em;
2169
+ top: -0.4375em;
2170
+ width: 0.9375em;
2171
+ height: 0.9375em;
2220
2172
  background-color: rgba(0, 0, 0, 0.7);
2221
2173
  justify-content: center;
2222
2174
  align-items: center;
@@ -2363,10 +2315,10 @@ table.touchchat-table tr:hover {
2363
2315
  .pdf-file-colse {
2364
2316
  position: absolute;
2365
2317
  cursor: pointer;
2366
- right: -0.3125em;
2367
- top: -0.3125em;
2368
- width: 0.625em;
2369
- height: 0.625em;
2318
+ right: -0.4375em;
2319
+ top: -0.4375em;
2320
+ width: 0.9375em;
2321
+ height: 0.9375em;
2370
2322
  background-color: rgba(0, 0, 0, 0.7);
2371
2323
  justify-content: center;
2372
2324
  align-items: center;
Binary file
Binary file
package/theme/index.css CHANGED
@@ -316,23 +316,21 @@
316
316
  --edit-input-bg: none;
317
317
  --edit-input-lh: 1.5em;
318
318
  --edit-input-padding: 1em;
319
- --edit-submit-padding: 0 0.5em 0.5em;
319
+ --edit-submit-padding: 0;
320
320
  --edit-submit-gap: 0.5em;
321
- --edit-attach-width: 2.5em;
322
- --edit-attach-height: 2.5em;
323
- --edit-attach-bg: #fff;
324
- --edit-attach-border: 1px solid #ddd;
325
- --edit-attach-radius: 0.25em;
326
- --edit-attach-color: inherit;
327
- --edit-attach-size: 1em;
328
- --edit-attach-family: 'touchchat-icon';
329
- --edit-attach-content: '\e610';
330
- --edit-attach-hover-bg: rgba(0, 0, 0, 0.1);
331
- --edit-attach-hover-color: var(--edit-attach-color);
332
- --edit-attach-hover-border: #0062d6;
333
- --edit-attach-active-bg: rgba(0, 0, 0, 0.3);
334
- --edit-attach-active-color: var(--edit-attach-color);
335
- --edit-attach-active-border: var(--edit-attach-border);
321
+ --edit-button-width: 2.5em;
322
+ --edit-button-height: 2.5em;
323
+ --edit-button-bg: #fff;
324
+ --edit-button-border: 1px solid #ddd;
325
+ --edit-button-radius: 0.25em;
326
+ --edit-button-color: inherit;
327
+ --edit-button-size: 1em;
328
+ --edit-button-hover-bg: rgba(0, 0, 0, 0.1);
329
+ --edit-button-hover-color: var(--edit-button-color);
330
+ --edit-button-hover-border: #0062d6;
331
+ --edit-button-active-bg: rgba(0, 0, 0, 0.3);
332
+ --edit-button-active-color: var(--edit-button-color);
333
+ --edit-button-active-border: var(--edit-button-border);
336
334
  --edit-think-height: 2.5em;
337
335
  --edit-think-padding: 0 1em;
338
336
  --edit-think-bg: #fff;
@@ -359,50 +357,16 @@
359
357
  --edit-think-on-active-bg: var(--edit-think-active-bg);
360
358
  --edit-think-on-active-color: var(--edit-think-on-color);
361
359
  --edit-think-on-active-border: var(--edit-think-on-border);
362
- --edit-delete-height: 2.5em;
363
- --edit-delete-padding: 0 1em;
364
- --edit-delete-bg: #fff;
365
- --edit-delete-border: 1px solid #ddd;
366
- --edit-delete-radius: 0.25em;
367
- --edit-delete-color: inherit;
368
- --edit-delete-gap: 0.5em;
369
- --edit-delete-size: 1em;
370
- --edit-delete-icon-size: var(--edit-delete-size);
360
+ --edit-attach-family: 'touchchat-icon';
361
+ --edit-attach-content: '\e73a';
371
362
  --edit-delete-family: 'touchchat-icon';
372
363
  --edit-delete-content: '\e73d';
373
- --edit-screenshot-height: 2.5em;
374
- --edit-screenshot-padding: 0 1em;
375
- --edit-screenshot-bg: #fff;
376
- --edit-screenshot-border: 1px solid #ddd;
377
- --edit-screenshot-radius: 0.25em;
378
- --edit-screenshot-color: inherit;
379
- --edit-screenshot-gap: 0.5em;
380
- --edit-screenshot-size: 1em;
381
- --edit-screenshot-icon-size: var(--edit-screenshot-size);
382
364
  --edit-screenshot-family: 'touchchat-icon';
383
365
  --edit-screenshot-content: '\e73c';
384
- --edit-voice-height: 2.5em;
385
- --edit-voice-padding: 0 1em;
386
- --edit-voice-bg: #fff;
387
- --edit-voice-border: 1px solid #ddd;
388
- --edit-voice-radius: 0.25em;
389
- --edit-voice-color: inherit;
390
- --edit-voice-gap: 0.5em;
391
- --edit-voice-size: 1em;
392
- --edit-voice-icon-size: var(--edit-voice-size);
393
366
  --edit-voice-family: 'touchchat-icon';
394
367
  --edit-voice-content: '\e73b';
395
- --edit-record-height: 2.5em;
396
- --edit-record-padding: 0 1em;
397
- --edit-record-bg: #fff;
398
- --edit-record-border: 1px solid #ddd;
399
- --edit-record-radius: 0.25em;
400
- --edit-record-color: inherit;
401
- --edit-record-gap: 0.5em;
402
- --edit-record-size: 1em;
403
- --edit-record-icon-size: var(--edit-record-size);
404
368
  --edit-record-family: 'touchchat-icon';
405
- --edit-record-content: '\e739';
369
+ --edit-record-content: '\ea42';
406
370
  --edit-send-width: 2.5em;
407
371
  --edit-send-height: 2.5em;
408
372
  --edit-send-bg: var(--color-primary);
@@ -426,7 +390,7 @@
426
390
  --edit-stop-color: #fff;
427
391
  --edit-stop-size: 1em;
428
392
  --edit-stop-family: 'touchchat-icon';
429
- --edit-stop-content: '\e60f';
393
+ --edit-stop-content: '\e70c';
430
394
  --edit-stop-hover-bg: #4d4d4d;
431
395
  --edit-stop-hover-color: var(--edit-stop-color);
432
396
  --edit-stop-hover-border: var(--edit-stop-border);
@@ -501,6 +465,7 @@
501
465
  font-size: var(--edit-input-size);
502
466
  }
503
467
  .touchchat-edit-submit {
468
+ padding: var(--edit-submit-padding);
504
469
  display: flex;
505
470
  justify-content: space-between;
506
471
  }
@@ -512,29 +477,29 @@
512
477
  display: inline-flex;
513
478
  gap: var(--edit-submit-gap);
514
479
  }
515
- .touchchat-edit-attach {
516
- border: var(--edit-attach-border);
517
- width: var(--edit-attach-width);
518
- height: var(--edit-attach-height);
519
- background: var(--edit-attach-bg);
480
+ .touchchat-edit-button {
481
+ border: var(--edit-button-border);
482
+ width: var(--edit-button-width);
483
+ height: var(--edit-button-height);
484
+ background: var(--edit-button-bg);
520
485
  display: inline-flex;
521
486
  align-items: center;
522
487
  justify-content: center;
523
- border-radius: var(--edit-attach-radius);
524
- color: var(--edit-attach-color);
488
+ border-radius: var(--edit-button-radius);
489
+ color: var(--edit-button-color);
525
490
  position: relative;
526
491
  }
527
- .touchchat-edit-attach:hover {
528
- background: var(--edit-attach-hover-bg);
529
- color: var(--edit-attach-hover-color);
530
- border: var(--edit-attach-hover-border);
492
+ .touchchat-edit-button:hover {
493
+ background: var(--edit-button-hover-bg);
494
+ color: var(--edit-button-hover-color);
495
+ border: var(--edit-button-hover-border);
531
496
  }
532
- .touchchat-edit-attach:active {
533
- background: var(--edit-attach-active-bg);
534
- color: var(--edit-attach-active-color);
535
- border: var(--edit-attach-active-border);
497
+ .touchchat-edit-button:active {
498
+ background: var(--edit-button-active-bg);
499
+ color: var(--edit-button-active-color);
500
+ border: var(--edit-button-active-border);
536
501
  }
537
- .touchchat-edit-attach.is-dis {
502
+ .touchchat-edit-button.is-dis {
538
503
  opacity: 0.4;
539
504
  pointer-events: none;
540
505
  }
@@ -543,45 +508,41 @@
543
508
  font-family: var(--edit-attach-family);
544
509
  content: var(--edit-attach-content);
545
510
  }
546
- .touchchat-edit-attach-tip {
511
+ .touchchat-edit-tooltip {
547
512
  display: none;
548
513
  position: absolute;
549
514
  bottom: 100%;
550
- left: 0;
515
+ left: 50%;
551
516
  background-color: rgba(0, 0, 0, 0.8);
552
517
  color: white;
553
- padding: 1em;
518
+ padding: 0.5em 1em;
554
519
  border-radius: 0.25em;
555
520
  margin-bottom: 0.5em;
556
- width: 20em;
557
- height: 6em;
558
- }
559
- .touchchat-edit-attach-tip p {
560
- text-align: left;
561
- }
562
- .touchchat-edit-voice-tip {
563
- left: -100%;
564
- width: 6em;
565
- height: auto;
566
- }
567
- .touchchat-edit-voice-tip p {
568
- text-align: center;
569
- }
570
- /* 创建小箭头 */
571
- .touchchat-edit-attach-tip::before,
572
- .touchchat-edit-attach-tip::after {
573
- content: '';
574
- position: absolute;
575
- left: 1.25em;
521
+ white-space: nowrap;
522
+ line-height: 1.5em;
576
523
  transform: translateX(-50%);
577
524
  }
578
- /* 创建小箭头 */
579
- .touchchat-edit-voice-tip::before,
580
- .touchchat-edit-voice-tip::after {
525
+ .touchchat-edit-tooltip::before {
581
526
  content: '';
582
527
  position: absolute;
583
528
  left: 50%;
584
529
  transform: translateX(-50%);
530
+ top: 100%;
531
+ border-width: 0.375em;
532
+ border-style: solid;
533
+ border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
534
+ }
535
+ .touchchat-edit-tooltip.align-left {
536
+ left: 0;
537
+ transform: translateX(0);
538
+ text-align: left;
539
+ }
540
+ .touchchat-edit-tooltip.align-left::before {
541
+ left: 0.875em;
542
+ transform: translateX(0);
543
+ }
544
+ .touchchat-edit-button:hover .touchchat-edit-tooltip {
545
+ display: block;
585
546
  }
586
547
  @keyframes lightUp {
587
548
  0% {
@@ -667,22 +628,6 @@
667
628
  .touchchat-edit-rlvoice-mic-body {
668
629
  animation: shadowBreath 2s ease-in-out infinite;
669
630
  }
670
- /* 小箭头外框 */
671
- .touchchat-edit-attach-tip::before {
672
- top: 100%;
673
- border-width: 0.375em;
674
- border-style: solid;
675
- border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
676
- }
677
- .touchchat-edit-attach-tip::after {
678
- top: calc(100% - 1px);
679
- border-width: 0.375em;
680
- border-style: solid;
681
- border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
682
- }
683
- .touchchat-edit-attach:hover .touchchat-edit-attach-tip {
684
- display: block;
685
- }
686
631
  .touchchat-edit-think {
687
632
  border: var(--edit-think-border);
688
633
  height: var(--edit-think-height);
@@ -734,6 +679,9 @@
734
679
  font-family: var(--edit-delete-family);
735
680
  content: var(--edit-delete-content);
736
681
  }
682
+ .touchchat-edit-screenshot {
683
+ position: relative;
684
+ }
737
685
  .touchchat-edit-screenshot-icon:before {
738
686
  font-size: var(--edit-screenshot-icon-size);
739
687
  font-family: var(--edit-screenshot-family);
@@ -764,6 +712,10 @@
764
712
  justify-content: center;
765
713
  border-radius: var(--edit-send-radius);
766
714
  }
715
+ .touchchat-edit-send[disabled] {
716
+ opacity: 0.5;
717
+ pointer-events: none;
718
+ }
767
719
  .touchchat-edit-send:hover {
768
720
  background: var(--edit-send-hover-bg);
769
721
  color: var(--edit-send-hover-color);
@@ -2151,9 +2103,9 @@ table.touchchat-table tr:hover {
2151
2103
  .file-content-scroll {
2152
2104
  display: flex;
2153
2105
  overflow-x: auto;
2154
- overflow-y: hidden;
2155
2106
  align-items: flex-start;
2156
2107
  gap: var(--file-content-gap);
2108
+ padding: 0.5em 0;
2157
2109
  -webkit-overflow-scrolling: touch;
2158
2110
  -ms-overflow-style: none;
2159
2111
  /* IE 和 Edge */
@@ -2216,10 +2168,10 @@ table.touchchat-table tr:hover {
2216
2168
  }
2217
2169
  .image-file-content .image-file-colse {
2218
2170
  position: absolute;
2219
- right: -0.3125em;
2220
- top: -0.3125em;
2221
- width: 0.625em;
2222
- height: 0.625em;
2171
+ right: -0.4375em;
2172
+ top: -0.4375em;
2173
+ width: 0.9375em;
2174
+ height: 0.9375em;
2223
2175
  background-color: rgba(0, 0, 0, 0.7);
2224
2176
  justify-content: center;
2225
2177
  align-items: center;
@@ -2366,10 +2318,10 @@ table.touchchat-table tr:hover {
2366
2318
  .pdf-file-colse {
2367
2319
  position: absolute;
2368
2320
  cursor: pointer;
2369
- right: -0.3125em;
2370
- top: -0.3125em;
2371
- width: 0.625em;
2372
- height: 0.625em;
2321
+ right: -0.4375em;
2322
+ top: -0.4375em;
2323
+ width: 0.9375em;
2324
+ height: 0.9375em;
2373
2325
  background-color: rgba(0, 0, 0, 0.7);
2374
2326
  justify-content: center;
2375
2327
  align-items: center;