chat-history.component.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .first-chat {
  2. display: flex;
  3. flex-direction: column;
  4. padding: 10px;
  5. border: 1px solid #e0e0e0; /* 边框样式 */
  6. border-radius: 8px; /* 圆角 */
  7. background-color: #fff; /* 背景色 */
  8. width: 100%; /* 宽度 */
  9. margin-top: 25px;
  10. }
  11. .chat-item {
  12. display: flex;
  13. flex-direction: column;
  14. padding: 10px;
  15. border: 1px solid #e0e0e0; /* 边框样式 */
  16. border-radius: 8px; /* 圆角 */
  17. margin-bottom: 10px;
  18. background-color: #fff; /* 背景色 */
  19. width: 100%; /* 宽度 */
  20. }
  21. .chat-header {
  22. display: flex;
  23. align-items: center; /* 垂直居中 */
  24. justify-content: center; /* 水平居中 */
  25. }
  26. .user-info {
  27. display: flex; /* 使用户信息水平排列 */
  28. align-items: center; /* 垂直居中 */
  29. flex: 1; /* 占据剩余空间 */
  30. }
  31. .avatar-image {
  32. width: 45px; /* 头像宽度 */
  33. height: 45px; /* 头像高度 */
  34. border-radius: 50%; /* 圆形头像 */
  35. margin-right: 12px; /* 头像和用户名之间的间距 */
  36. }
  37. .username {
  38. font-weight: bold; /* 用户名加粗 */
  39. font-size: 27px;
  40. }
  41. .timestamp {
  42. font-size: 20px; /* 时间字体大小 */
  43. color: #888; /* 时间颜色 */
  44. }
  45. .chat-content {
  46. margin-top: 10px; /* 内容与标题之间的间距 */
  47. }
  48. .chat-text {
  49. font-size: 16px; /* 聊天内容字体大小 */
  50. color: #333; /* 聊天内容颜色 */
  51. overflow: hidden; /* 超出部分隐藏 */
  52. text-overflow: ellipsis; /* 省略号 */
  53. white-space: nowrap; /* 单行显示 */
  54. }