message-consult.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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: flex-start;
  13. font-size: 28rpx;
  14. color: #333;
  15. .markdown-content {
  16. width: 100%;
  17. word-wrap: break-word;
  18. word-break: break-all;
  19. white-space: normal;
  20. line-height: 1.5;
  21. font-size: 28rpx;
  22. display: block;
  23. strong,
  24. b {
  25. display: inline !important;
  26. font-weight: bold !important;
  27. white-space: normal !important;
  28. margin: 0 !important;
  29. padding: 0 !important;
  30. line-height: inherit !important;
  31. vertical-align: baseline;
  32. }
  33. em,
  34. i {
  35. display: inline !important;
  36. font-style: italic !important;
  37. white-space: normal !important;
  38. margin: 0 !important;
  39. padding: 0 !important;
  40. line-height: inherit !important;
  41. vertical-align: baseline;
  42. }
  43. // 代码块样式
  44. pre {
  45. background-color: #f5f5f5;
  46. padding: 16rpx;
  47. border-radius: 8rpx;
  48. overflow-x: auto;
  49. margin: 16rpx 0;
  50. display: block;
  51. }
  52. code {
  53. background-color: #f5f5f5;
  54. padding: 4rpx 8rpx;
  55. border-radius: 4rpx;
  56. font-family: "Courier New", monospace;
  57. font-size: 24rpx;
  58. display: inline;
  59. }
  60. pre code {
  61. background-color: transparent;
  62. padding: 0;
  63. display: block;
  64. }
  65. ul,
  66. ol {
  67. margin: 16rpx 0;
  68. padding-left: 40rpx;
  69. display: block;
  70. }
  71. li {
  72. margin: 8rpx 0;
  73. list-style-type: disc;
  74. display: list-item;
  75. strong,
  76. b {
  77. display: inline !important;
  78. }
  79. }
  80. p {
  81. margin: 8rpx 0;
  82. display: block;
  83. line-height: 1.5;
  84. strong,
  85. b {
  86. display: inline !important;
  87. }
  88. &:has(strong),
  89. &:has(b) {
  90. strong,
  91. b {
  92. display: inline !important;
  93. white-space: normal !important;
  94. }
  95. }
  96. }
  97. br {
  98. line-height: 1.5;
  99. }
  100. span {
  101. display: inline !important;
  102. white-space: normal !important;
  103. }
  104. }
  105. }
  106. .message-image {
  107. width: 200rpx;
  108. height: 200rpx;
  109. border-radius: 16rpx;
  110. display: block;
  111. }
  112. .input-panel {
  113. position: fixed;
  114. left: 0;
  115. right: 0;
  116. display: flex;
  117. flex-direction: column;
  118. align-items: stretch;
  119. padding: 16rpx 24rpx;
  120. box-sizing: border-box;
  121. z-index: 10;
  122. transition: bottom 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  123. will-change: bottom;
  124. }
  125. .chat-card {
  126. --avatar-size: 42px;
  127. .image-message,
  128. .text-message {
  129. max-width: calc(90% - var(--avatar-size)) !important;
  130. border-radius: 0px 10px 10px 10px !important;
  131. background-color: white;
  132. overflow: hidden;
  133. }
  134. &.right {
  135. .image-message,
  136. .text-message {
  137. border-radius: 10px 0px 10px 10px !important;
  138. }
  139. }
  140. }
  141. .action-bar {
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. margin-bottom: 12rpx;
  146. gap: 24rpx;
  147. }
  148. .action-btn {
  149. display: inline-flex;
  150. align-items: center;
  151. padding: 0 24rpx;
  152. height: 80rpx;
  153. line-height: 80rpx;
  154. border-radius: 12rpx;
  155. font-size: 30rpx;
  156. }
  157. .action-btn.secondary {
  158. color: black;
  159. }
  160. .action-btn.danger {
  161. color: #1d6ff6;
  162. }
  163. .action-text {
  164. margin-left: 8rpx;
  165. }
  166. .input-row {
  167. display: flex;
  168. align-items: flex-end;
  169. gap: 16rpx;
  170. }
  171. .text-input {
  172. flex: 1;
  173. width: 60% !important;
  174. min-height: 80rpx;
  175. max-height: 200rpx;
  176. padding: 12rpx 20rpx;
  177. background: #ffffff;
  178. border-radius: 12rpx;
  179. border: 1rpx solid #e6e6e6;
  180. color: #333333;
  181. font-size: 28rpx;
  182. line-height: 1.9;
  183. box-sizing: border-box;
  184. overflow-y: scroll !important;
  185. overflow-x: hidden;
  186. -webkit-overflow-scrolling: touch;
  187. transition: height 0.2s ease-out;
  188. word-wrap: break-word;
  189. word-break: break-all;
  190. scroll-behavior: smooth;
  191. }
  192. .send-btn {
  193. padding: 0 24rpx;
  194. height: 80rpx;
  195. line-height: 80rpx;
  196. background: #1d6ff6;
  197. color: #ffffff;
  198. border-radius: 12rpx;
  199. font-size: 28rpx;
  200. flex-shrink: 0;
  201. }
  202. .media-btn {
  203. display: inline-flex;
  204. flex-direction: column;
  205. align-items: center;
  206. justify-content: center;
  207. background: #ffffff;
  208. border-radius: 8rpx;
  209. padding: 0 20rpx;
  210. flex-shrink: 0;
  211. height: 80rpx;
  212. margin: 0 5rpx;
  213. }
  214. .media-text {
  215. color: #1d6ff6;
  216. font-size: 24rpx;
  217. margin-top: 2rpx;
  218. }
  219. /* 系统消息样式 */
  220. .system-wrapper {
  221. display: flex;
  222. flex-direction: column;
  223. align-items: center;
  224. margin: 6px 0;
  225. .title {
  226. padding: 4px 12px;
  227. font-size: 12px;
  228. color: #999999;
  229. border-radius: 5px;
  230. }
  231. .date {
  232. font-size: 12px;
  233. color: #999;
  234. margin-bottom: 6px;
  235. }
  236. }
  237. .chat-box {
  238. padding: 15rpx 0 15rpx 30rpx !important;
  239. }