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