Files
leaudit-platform-frontend/app/styles/components/chat-with-llm/chat-message.css
T
2025-06-04 11:25:53 +08:00

132 lines
2.1 KiB
CSS

/* 消息项样式 */
.chat-message {
margin-bottom: 20px;
animation: fadeInUp 0.3s ease-out;
max-width: 100%;
}
/* 消息卡片 */
.message-card {
max-width: 85%;
word-wrap: break-word;
word-break: break-word;
}
.message-card.user {
margin-left: auto;
}
.message-card.assistant {
margin-right: auto;
}
/* 流式文本效果 */
.streaming-text {
position: relative;
}
.streaming-text::after {
content: '';
/* 移除光标 */
animation: blink 1s infinite;
color: #1890ff;
margin-left: 2px;
}
@keyframes blink {
0%,
50% {
opacity: 1;
}
51%,
100% {
opacity: 0;
}
}
/* 消息动画 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 响应指示器 */
.responding-indicator {
display: flex;
align-items: center;
gap: 8px;
color: #6b7280;
font-size: 14px;
}
/* 反馈按钮容器 */
.feedback-buttons {
margin-top: 12px;
display: flex;
gap: 8px;
}
/* 建议问题 */
.suggested-questions {
margin-top: 16px;
}
.question-button {
margin-bottom: 8px;
margin-right: 8px;
white-space: normal;
height: auto;
padding: 8px 12px;
text-align: left;
border: 1px solid #d1d5db;
background: #f9fafb;
color: #374151;
transition: all 0.2s ease;
}
.question-button:hover {
border-color: #1890ff;
background: #f0f9ff;
color: #1890ff;
}
/* 消息时间戳 */
.message-timestamp {
font-size: 12px;
color: #9ca3af;
margin-top: 8px;
display: flex;
gap: 12px;
}
/* 消息图片 */
.message-images {
margin-top: 12px;
}
.message-images .ant-image {
border-radius: 8px;
overflow: hidden;
}
/* 响应式设计 */
@media (max-width: 768px) {
.message-card {
max-width: 95%;
}
}
@media (max-width: 480px) {
.message-card {
max-width: 100%;
}
}