Files
memind/miniapp/pages/chat/index.wxss
T
john c842119929 fix(miniapp): add missing uuid and message-display utils
Commit the utility modules required by api.js, messages.js, and chat page
so WeChat DevTools can resolve require('./uuid') at runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 13:01:05 +08:00

221 lines
3.3 KiB
Plaintext

.chat-page {
display: flex;
flex-direction: column;
height: 100vh;
padding: 0;
}
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
padding: 20rpx 24rpx;
background: #ffffff;
border-bottom: 1rpx solid #dbe3eb;
}
.chat-title {
display: flex;
flex-direction: column;
gap: 4rpx;
min-width: 0;
font-size: 30rpx;
font-weight: 800;
}
.header-error {
max-width: 420rpx;
color: #b42318;
font-size: 22rpx;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-actions {
display: flex;
gap: 12rpx;
}
.header-button {
width: 112rpx;
height: 58rpx;
line-height: 58rpx;
border-radius: 10rpx;
background: #eef6f5;
color: #0f766e;
font-size: 24rpx;
}
.messages {
flex: 1;
box-sizing: border-box;
padding: 28rpx;
}
.empty-state {
margin: 160rpx auto 0;
color: #64748b;
font-size: 28rpx;
text-align: center;
}
.message-row {
display: flex;
align-items: flex-end;
gap: 12rpx;
margin-bottom: 20rpx;
}
.message-row.user {
flex-direction: row-reverse;
}
.message {
max-width: 84%;
padding: 22rpx 24rpx;
border-radius: 16rpx;
font-size: 29rpx;
line-height: 1.55;
}
.message.user {
background: #0f766e;
color: #ffffff;
}
.message.assistant {
background: #ffffff;
color: #132028;
border: 1rpx solid #dbe3eb;
}
.message-body {
white-space: pre-wrap;
word-break: break-word;
}
.message-text {
white-space: pre-wrap;
}
.message-link {
color: #0ea5e9;
text-decoration: underline;
}
.message.user .message-link {
color: #d1fae5;
}
.page-links {
display: flex;
flex-direction: column;
gap: 12rpx;
margin-top: 18rpx;
}
.page-link-card {
display: flex;
align-items: center;
justify-content: center;
padding: 20rpx 24rpx;
border-radius: 12rpx;
background: #0f766e;
border: none;
}
.message.user .page-link-card {
background: rgba(255, 255, 255, 0.22);
border: 1rpx solid rgba(255, 255, 255, 0.28);
}
.page-link-title {
display: block;
font-size: 28rpx;
font-weight: 700;
color: #ffffff;
text-align: center;
}
.message.user .page-link-title {
color: #ffffff;
}
.message-copy {
flex: 0 0 auto;
width: 52rpx;
height: 52rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10rpx;
background: #f8fafc;
border: 1rpx solid #e2e8f0;
}
.copy-icon {
position: relative;
width: 22rpx;
height: 24rpx;
}
.copy-icon::before,
.copy-icon::after {
content: '';
position: absolute;
border: 2rpx solid #64748b;
border-radius: 3rpx;
box-sizing: border-box;
}
.copy-icon::before {
top: 0;
left: 6rpx;
width: 16rpx;
height: 18rpx;
background: #ffffff;
}
.copy-icon::after {
top: 6rpx;
left: 0;
width: 16rpx;
height: 18rpx;
background: #f8fafc;
}
.composer {
display: flex;
align-items: flex-end;
gap: 16rpx;
padding: 18rpx;
border-left: 0;
border-right: 0;
border-bottom: 0;
border-radius: 0;
}
.input {
flex: 1;
height: 72rpx;
padding: 0 20rpx;
border-radius: 12rpx;
background: #f8fafc;
box-sizing: border-box;
font-size: 28rpx;
}
.send {
width: 136rpx;
height: 72rpx;
line-height: 72rpx;
border-radius: 12rpx;
background: #0f766e;
color: #fff;
font-weight: 700;
font-size: 28rpx;
}