msglist.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /* comps/msglist/msglist.wxss */
  2. /*.chat-bg{
  3. position:fixed;
  4. width: 100%;
  5. height: 100%;
  6. z-index: 0;
  7. top: 50px;
  8. }*/
  9. /* .wrap{
  10. width: 100%;
  11. height: 100%;
  12. position: absolute;
  13. overflow-y: scroll;
  14. } */
  15. .scroll_view,
  16. .scroll_view_change {
  17. /*width: 100%;
  18. position: absolute;
  19. left: 0;
  20. top: 0;
  21. right: 0;
  22. bottom: 150rpx;*/
  23. margin-bottom: 174rpx;
  24. background-color: #FAFAFA;
  25. }
  26. .scroll_view_X,
  27. .scroll_view_change_X {
  28. margin-bottom: 244rpx;
  29. }
  30. .scroll_view_change {
  31. /*bottom: 440rpx;*/
  32. margin-bottom: 590rpx;
  33. }
  34. .message {
  35. width: 92%;
  36. min-height: 130rpx;
  37. height: auto;
  38. padding: 0 30rpx;
  39. /* position: relative; */
  40. display: block;
  41. }
  42. .time {
  43. margin: 14rpx 0;
  44. text-align: center;
  45. }
  46. .time .time-text {
  47. display: inline-block;
  48. padding: 6rpx 20rpx 0 20rpx;
  49. font-size: 24rpx;
  50. color: #fff;
  51. line-height: 28rpx;
  52. border-radius: 4rpx;
  53. background-color: #dcdcdc;
  54. }
  55. .user .user-text {
  56. margin: auto 100rpx 8rpx;
  57. font-size: 20rpx;
  58. color: #dcdcdc;
  59. display: block;
  60. }
  61. .avatar {
  62. width: 72rpx;
  63. height: 72rpx;
  64. margin: 0 20rpx 0 0;
  65. border-radius: 6rpx;
  66. float: left;
  67. }
  68. .msg {
  69. display: inline-block;
  70. padding: 20rpx;
  71. max-width: calc(85% - 80rpx);
  72. min-height: 40rpx;
  73. font-size: 24rpx;
  74. /*overflow: hidden;*/
  75. text-align: left;
  76. word-break: break-all;
  77. background-color: #fff;
  78. border-radius: 26rpx;
  79. position: relative;
  80. margin-top: 24rpx;
  81. }
  82. .msg .msg_poprightarrow {
  83. position: absolute;
  84. right: -10rpx;
  85. height: 18rpx;
  86. width: 18rpx;
  87. margin-top: -10rpx;
  88. }
  89. .msg .msg_popleftarrow {
  90. position: absolute;
  91. left: -14rpx;
  92. height: 18rpx;
  93. width: 18rpx;
  94. margin-top: -10rpx;
  95. }
  96. .msg .msg-text {
  97. line-height: 40rpx;
  98. font-size: 32rpx;
  99. margin: 0;
  100. }
  101. .msg .msg-video {
  102. width: 300rpx;
  103. }
  104. /*.msg:before {
  105. content: " ";
  106. position: absolute;
  107. top: 9px;
  108. right: 100%;
  109. border: 6px solid transparent;
  110. border-right-color: #EDEDED;
  111. }*/
  112. .self {
  113. text-align: right;
  114. }
  115. .self .avatar {
  116. float: right;
  117. margin: 0 0 0 20rpx;
  118. }
  119. .user {
  120. position: relative;
  121. bottom: -30rpx;
  122. }
  123. .self .msg {
  124. background-color: #0873DE;
  125. color: #fff;
  126. }
  127. .self .msg:before {
  128. right: inherit;
  129. left: 100%;
  130. border-right-color: transparent;
  131. border-left-color: #b2e281;
  132. }
  133. .template {
  134. display: inline;
  135. }
  136. .err {
  137. width: 32rpx;
  138. height: 32rpx;
  139. position: absolute;
  140. left: -40rpx;
  141. }
  142. .hide {
  143. display: none;
  144. }
  145. .show {
  146. display: block;
  147. }
  148. .row-left {
  149. padding: 20rpx 0;
  150. width: 90%;
  151. display: inline-flex;
  152. align-items: flex-start;
  153. justify-content: flex-start;
  154. }
  155. .row-right {
  156. float: right;
  157. padding: 20rpx 0;
  158. width: 90%;
  159. display: inline-flex;
  160. align-items: flex-start;
  161. justify-content: flex-end;
  162. }
  163. .photo {
  164. width: 80rpx;
  165. height: 80rpx;
  166. border-radius: 40rpx;
  167. }
  168. .row-left .msgbox {
  169. display: inline-flex;
  170. flex-direction: column;
  171. justify-content: flex-start;
  172. align-items: flex-start;
  173. margin-left: 20rpx;
  174. }
  175. .row-right .msgbox {
  176. display: inline-flex;
  177. flex-direction: column;
  178. justify-content: flex-start;
  179. align-items: flex-end;
  180. margin-right: 20rpx;
  181. }
  182. .row-left .content {
  183. background-color: #fff;
  184. margin-left: 20rpx;
  185. border-radius: 10rpx;
  186. padding: 10rpx;
  187. max-width: 80%;
  188. }
  189. .row-right .content {
  190. background-color: #fff;
  191. margin-right: 20rpx;
  192. border-radius: 10rpx;
  193. padding: 10rpx;
  194. max-width: 80%;
  195. }
  196. .user-text {
  197. box-sizing: border-box;
  198. font-size: 22rpx;
  199. color: #dcdcdc;
  200. padding: 10rpx;
  201. }
  202. .msgbox {
  203. width: 90%;
  204. }
  205. .clickMsg {
  206. width: 100%;
  207. }
  208. .msg-text {
  209. width: 100%;
  210. overflow-wrap: normal;
  211. word-break: break-all;
  212. }