.els { white-space: nowrap; /* 强制文本不换行 */ overflow: hidden; /* 隐藏溢出内容 */ text-overflow: ellipsis; /* 显示省略号 */ } .chat-container { border-radius: 14px; height: 100%; display: flex; flex-direction: column; border: 1px solid #dcdfe6; //background-color: #f0f0f0; background-color: #ffffff; } .message-list { flex: 1; overflow: hidden; position: relative; } .messages { padding: 12px 12px 0; min-height: 100%; display: flex; flex-direction: column; } .message-item { display: flex; margin-bottom: 20px; gap: 12px; color: #333; align-items: flex-start; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message-item.self { flex-direction: row-reverse; } .message-content { max-width: 80%; } .username { font-size: 14px; color: #606266; margin-bottom: 4px; } .content { padding: 6px; background-color: #f0f4f8; border-radius: 4px; //background: linear-gradient(to bottom right, #D2B48C, #E8D5B5); //background: linear-gradient(to bottom, #D2B48C, #E8D5B5); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); word-break: break-all; line-height: 1.5; font-size: 14px; letter-spacing: 1px; } .content :deep(pre) { margin: 10px 0; border-radius: 8px; } .content :deep(code) { font-family: 'Menlo', 'Monaco', 'Courier New', monospace; } .content :deep(p) { margin: 8px 0; } .content :deep(ul), .content :deep(ol) { padding-left: 20px; margin: 8px 0; } .content :deep(blockquote) { border-left: 4px solid #ddd; padding-left: 10px; color: #666; margin: 8px 0; } .self .content { background: #409eff; color: white; //border-bottom-right-radius: 4px; } .other .content { border-bottom-left-radius: 4px; } .timestamp { display: flex; justify-content: space-between; font-size: 12px; color: #909399; margin-top: 6px; } .timestamp span { transition: color 0.2s; } .timestamp span:hover { color: #409eff; } .info-card { margin: 10px; } .card-icon { color: #409eff; } @keyframes scrollTitle { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } } .upload :deep(.el-icon) { transition: color 0.3s; } .can-hover :deep(.el-icon:hover) { color: #409eff !important; } .el-check-tag { margin-right: 8px; transition: all 0.3s; } .el-check-tag:hover { transform: scale(1.05); } /* 加载中的消息样式 */ .loading-content { min-height: 40px; display: flex; align-items: center; justify-content: flex-start; } .loading-indicator { display: inline-block; align-items: center; gap: 4px; margin-left: 2px; .dot { width: 4px; height: 4px; margin: 0 2px; background-color: gray; border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite ease-in-out; } .dot:nth-child(2) { animation-delay: 0.3s; } .dot:nth-child(3) { animation-delay: 0.6s; } @keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } } } .input-area { padding: 8px 10px; color: black; background-color: #fff; border: 1px solid rgba(102, 102, 102, 0.3); border-radius: 16px; margin: 0 12px 12px; position: relative; .card_list { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; .card_width { width: 124px !important; } } .card-content { flex-shrink: 0; width: fit-content; max-width: 260px; height: 50px; display: flex; align-items: center; gap: 6px; padding: 8px 6px; margin: 0 8px 6px 0; background: #fff; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.2); font-size: 14px; position: relative; .title-wrapper { display: flex; //width: fit-content; width: calc(100% - 30px); flex-direction: column; } .title-scroller { display: inline-block; white-space: nowrap; color: #000000; font-size: 14px; font-weight: 900; } .url-scroller { font-size: 12px; color: #909399; } .title-scroller.scroll { animation: scrollTitle 10s linear infinite; } .closeIcon { display: none; cursor: pointer; position: absolute; right: -5px; top: -5px; background-color: #ffffff; border-radius: 50%; z-index: 1; } } .closeShow { display: none; position: absolute; right: -5px; top: -5px; background-color: #ffffff; border-radius: 50%; z-index: 1; cursor: pointer; } .card-content:hover { .closeIcon { display: block; } } .card-btn { padding: 0 0 4px; .op { margin-right: 3px; } } .chat_area_op { margin-top: 3px; display: flex; justify-content: end; } } .input-area:hover { border-color: rgba(102, 102, 102, 0.4); } .input-area :deep(.el-textarea__inner) { border-radius: 8px; transition: border-color 0.3s; resize: none; box-shadow: none; } .input-area :deep(.el-textarea__inner) { padding: 0 4px; margin-top: 3px; } .input-area :deep(.el-textarea__inner:focus) { border-color: #409eff; box-shadow: none; } .buttom-clicked { color: #409eff; border-color: rgb(197.7, 225.9, 255); }