feat 完善注释
This commit is contained in:
@@ -41,10 +41,10 @@ const emojiMap: Record<MessageType, string> = {
|
||||
|
||||
<style lang="less" scoped>
|
||||
.message-item {
|
||||
position: relative; // 未读徽标相对行定位(压图标右上角)
|
||||
position: relative;
|
||||
.flex(row, flex-start);
|
||||
gap: @spacing-base; // 图标→标题 22 × 0.77
|
||||
padding: 14px 17px; // 行内边距 23/22 × 0.77
|
||||
gap: @spacing-base;
|
||||
padding: 14px 17px;
|
||||
background: @white;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
@@ -53,7 +53,6 @@ const emojiMap: Record<MessageType, string> = {
|
||||
background: @bg-color-light;
|
||||
}
|
||||
|
||||
// 类型图标圆:设计 43 直径 40 × 0.77,实取 #3B82F6
|
||||
&__emoji {
|
||||
flex-shrink: 0;
|
||||
.flex(row, center);
|
||||
@@ -67,10 +66,10 @@ const emojiMap: Record<MessageType, string> = {
|
||||
|
||||
&__body {
|
||||
.flex(column, flex-start, stretch);
|
||||
gap: 5px; // 标题→摘要 6 × 0.77
|
||||
gap: 5px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-top: 6px; // 标题比图标顶下移 9 × 0.77
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
&__head {
|
||||
@@ -79,7 +78,6 @@ const emojiMap: Record<MessageType, string> = {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// 设计 43:标题 14 → 可读下限 11 / 600 / #1F2937(所有行均半粗)
|
||||
&__title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
@@ -89,17 +87,15 @@ const emojiMap: Record<MessageType, string> = {
|
||||
|
||||
&__time {
|
||||
flex-shrink: 0;
|
||||
font-size: 11px; // 设计 12 → 可读下限 11
|
||||
color: @text-color-disabled; // 设计 43 时间 @text-color-disabled(覆盖 text-secondary)
|
||||
font-size: 11px;
|
||||
color: @text-color-disabled;
|
||||
}
|
||||
|
||||
// 设计 43:摘要 12 → 可读下限 11 / #6B7280(text-secondary)
|
||||
&__summary {
|
||||
font-size: 11px;
|
||||
.ellipsis();
|
||||
}
|
||||
|
||||
// 未读徽标:设计 43 红圆压图标右上(≈ 直径 20 × 0.77)
|
||||
&__dot {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
|
||||
Reference in New Issue
Block a user