message-consult.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @import "../../../../themes/t.cell.scss";
  2. @import "../../common.scss";
  3. .consult-wrapper {
  4. padding-bottom: 180rpx;
  5. &.consult-ended {
  6. padding-bottom: 0;
  7. }
  8. }
  9. .message-content {
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. min-height: 72rpx;
  14. font-size: 28rpx;
  15. color: #333;
  16. }
  17. .message-image {
  18. width: 200rpx;
  19. height: 200rpx;
  20. border-radius: 16rpx;
  21. display: block;
  22. }
  23. .input-panel {
  24. position: fixed;
  25. left: 0;
  26. right: 0;
  27. display: flex;
  28. flex-direction: column;
  29. align-items: stretch;
  30. padding: 16rpx 24rpx;
  31. box-sizing: border-box;
  32. z-index: 10;
  33. // 使用更平滑的过渡,避免位置变化时的跳动
  34. transition: bottom 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  35. will-change: bottom;
  36. }
  37. .chat-card {
  38. --avatar-size: 42px;
  39. .image-message,
  40. .text-message {
  41. max-width: calc(90% - var(--avatar-size)) !important;
  42. border-radius: 0px 10px 10px 10px !important;
  43. background-color: white;
  44. overflow: hidden;
  45. }
  46. &.right {
  47. .image-message,
  48. .text-message {
  49. border-radius: 10px 0px 10px 10px !important;
  50. }
  51. }
  52. }
  53. .action-bar {
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. margin-bottom: 12rpx;
  58. gap: 24rpx;
  59. }
  60. .action-btn {
  61. display: inline-flex;
  62. align-items: center;
  63. padding: 0 24rpx;
  64. height:80rpx;
  65. line-height: 80rpx;
  66. border-radius: 12rpx;
  67. font-size: 30rpx;
  68. }
  69. .action-btn.secondary {
  70. color: black;
  71. }
  72. .action-btn.danger {
  73. color: #1d6ff6;
  74. }
  75. .action-text {
  76. margin-left: 8rpx;
  77. }
  78. .input-row {
  79. display: flex;
  80. align-items: flex-end;
  81. gap: 16rpx;
  82. }
  83. .text-input {
  84. flex: 1;
  85. width: 60% !important;
  86. min-height: 80rpx;
  87. max-height: 200rpx;
  88. padding: 12rpx 20rpx;
  89. background: #ffffff;
  90. border-radius: 12rpx;
  91. border: 1rpx solid #e6e6e6;
  92. color: #333333;
  93. font-size: 28rpx;
  94. line-height: 1.9;
  95. box-sizing: border-box;
  96. // 超过 max-height 后显示滚动条
  97. overflow-y: scroll !important;
  98. overflow-x: hidden;
  99. // 启用平滑滚动(iOS 和部分 Android 支持)
  100. -webkit-overflow-scrolling: touch;
  101. // 平滑过渡,让高度变化更自然(类似微信)
  102. // 使用适中的过渡时间和缓动函数,平衡响应速度和平滑度
  103. transition: height 0.2s ease-out;
  104. // 确保内容可以滚动和换行
  105. word-wrap: break-word;
  106. word-break: break-all;
  107. // 优化滚动行为,避免突然跳动
  108. scroll-behavior: smooth;
  109. }
  110. .send-btn {
  111. padding: 0 24rpx;
  112. height: 80rpx;
  113. line-height: 80rpx;
  114. background: #1d6ff6;
  115. color: #ffffff;
  116. border-radius: 12rpx;
  117. font-size: 28rpx;
  118. flex-shrink: 0;
  119. }
  120. .media-btn {
  121. display: inline-flex;
  122. flex-direction: column;
  123. align-items: center;
  124. justify-content: center;
  125. background: #ffffff;
  126. border-radius: 8rpx;
  127. padding: 0 20rpx;
  128. flex-shrink: 0;
  129. height:80rpx;
  130. margin: 0 5rpx;
  131. }
  132. .media-text {
  133. color: #1d6ff6;
  134. font-size: 24rpx;
  135. margin-top: 2rpx;
  136. }
  137. /* 系统消息样式 */
  138. .system-wrapper {
  139. display: flex;
  140. flex-direction: column;
  141. align-items: center;
  142. margin: 6px 0;
  143. .title {
  144. padding: 4px 12px;
  145. font-size: 12px;
  146. color: #999999;
  147. border-radius: 5px;
  148. }
  149. .date {
  150. font-size: 12px;
  151. color: #999;
  152. margin-bottom: 6px;
  153. }
  154. }
  155. .chat-box {
  156. padding: 15rpx 0 15rpx 30rpx !important;
  157. }