补齐论坛核心能力:讨论锁定、发帖本地草稿、标签精确筛选,以及私信与通知分流。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-07 06:32:06 +08:00
parent 0f83183620
commit 10185178e2
28 changed files with 1165 additions and 266 deletions

View File

@@ -2510,9 +2510,32 @@ a.post-title:visited {
min-width: 0;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.post-list-tag {
display: inline-flex;
align-items: center;
max-width: 7rem;
padding: 0.1rem 0.4rem;
border: 0;
border-radius: 0.25rem;
background: color-mix(in srgb, var(--j13-muted, #94a3b8) 16%, transparent);
color: var(--color-text-3, #64748b);
font-size: 0.7rem;
line-height: 1.3;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.post-list-tag:hover {
color: var(--j13-green, #18a058);
background: color-mix(in srgb, var(--j13-green, #18a058) 12%, transparent);
}
.post-stats {
display: flex;
align-items: center;
@@ -3193,6 +3216,19 @@ a.post-title:visited {
font-size: 11px;
}
.comment-locked-banner {
display: flex;
align-items: center;
gap: 0.45rem;
margin: 0.75rem 0 1rem;
padding: 0.7rem 0.9rem;
border-radius: 0.4rem;
border: 1px solid color-mix(in srgb, hsl(var(--destructive)) 28%, transparent);
background: color-mix(in srgb, hsl(var(--destructive)) 8%, transparent);
color: hsl(var(--destructive));
font-size: 0.875rem;
}
.post-detail-edit-hint {
font-size: 12px;
color: var(--color-text-3);
@@ -3749,6 +3785,18 @@ a.post-title:visited {
margin-bottom: 12px;
}
.post-detail-tag-btn {
display: inline-flex;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.post-detail-tag-btn:hover {
opacity: 0.85;
}
.post-detail-actions {
display: flex;
flex-direction: column;
@@ -9420,6 +9468,136 @@ button.profile-stat:hover strong {
margin-bottom: 12px;
}
.pm-tabs {
display: flex;
gap: 0.35rem;
margin-bottom: 0.85rem;
}
.pm-tab {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.4rem 0.85rem;
border: 1px solid var(--j13-border, #e2e8f0);
border-radius: 0.4rem;
background: transparent;
color: var(--color-text-2, #475569);
font-size: 0.875rem;
font-weight: 560;
cursor: pointer;
}
.pm-tab:hover {
border-color: color-mix(in srgb, var(--j13-green, #18a058) 40%, var(--j13-border, #e2e8f0));
}
.pm-tab.active {
border-color: color-mix(in srgb, var(--j13-green, #18a058) 45%, transparent);
background: color-mix(in srgb, var(--j13-green, #18a058) 10%, transparent);
color: var(--j13-green, #18a058);
}
.pm-tab__badge {
min-width: 1.15rem;
padding: 0 0.3rem;
border-radius: 999px;
background: hsl(var(--destructive));
color: #fff;
font-size: 0.68rem;
line-height: 1.15rem;
text-align: center;
}
.pm-notify {
padding: 0.85rem 1rem 1rem;
border-radius: 0.5rem;
}
.pm-notify-filters {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.85rem;
}
.pm-notify-filter {
padding: 0.25rem 0.65rem;
border: 0;
border-radius: 999px;
background: color-mix(in srgb, var(--j13-muted, #94a3b8) 14%, transparent);
color: var(--color-text-3, #64748b);
font-size: 0.78rem;
cursor: pointer;
}
.pm-notify-filter.active {
background: color-mix(in srgb, var(--j13-green, #18a058) 16%, transparent);
color: var(--j13-green, #18a058);
font-weight: 600;
}
.pm-notify-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.pm-notify-item {
padding: 0.75rem 0.85rem;
border: 1px solid var(--j13-border, #e2e8f0);
border-radius: 0.45rem;
background: var(--j13-card, #fff);
}
.pm-notify-item.unread {
border-color: color-mix(in srgb, var(--j13-green, #18a058) 35%, var(--j13-border, #e2e8f0));
background: color-mix(in srgb, var(--j13-green, #18a058) 5%, var(--j13-card, #fff));
}
.pm-notify-item__kind {
font-size: 0.72rem;
font-weight: 650;
color: var(--j13-green, #18a058);
margin-bottom: 0.25rem;
}
.pm-notify-item__subject {
font-weight: 650;
margin-bottom: 0.25rem;
}
.pm-notify-item__text {
white-space: pre-wrap;
word-break: break-word;
color: var(--color-text-2, #475569);
font-size: 0.9rem;
line-height: 1.5;
}
.pm-notify-item__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
margin-top: 0.55rem;
font-size: 0.75rem;
color: var(--color-text-4, #94a3b8);
}
.pm-notify-item__link {
color: var(--j13-green, #18a058);
text-decoration: none;
font-weight: 560;
}
.pm-notify-item__link:hover {
text-decoration: underline;
}
.pm-layout {
display: grid;
grid-template-columns: minmax(200px, 240px) 1fr;
@@ -9878,19 +10056,50 @@ a.pm-thread-head__name:hover {
background: color-mix(in srgb, var(--j13-green, #16a34a) 20%, transparent);
color: var(--j13-green, #16a34a);
}
.user-badge--level-muted { color: #64748b; }
.user-badge--level-blue {
background: color-mix(in srgb, #2563eb 18%, transparent);
color: #1d4ed8;
.user-badge--level {
gap: 0.2rem;
padding-left: 0.3rem;
border-left: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.user-badge--level-amber {
background: color-mix(in srgb, #d97706 20%, transparent);
.user-badge__level-text {
letter-spacing: 0.01em;
}
.level-emblem {
flex-shrink: 0;
display: block;
}
.user-badge--level-sprout {
background: color-mix(in srgb, #6b8f71 16%, transparent);
color: #5a7260;
}
.user-badge--level-leaf {
background: color-mix(in srgb, var(--j13-green, #18a058) 16%, transparent);
color: var(--j13-green, #18a058);
}
.user-badge--level-crest {
background: color-mix(in srgb, #d97706 18%, transparent);
color: #b45309;
}
.user-badge--level-gold {
background: color-mix(in srgb, #ca8a04 22%, transparent);
.user-badge--level-crown {
background: color-mix(in srgb, #ca8a04 20%, transparent);
color: #a16207;
}
.dark .user-badge--level-sprout {
background: color-mix(in srgb, #86a789 18%, transparent);
color: #a3b8a6;
}
.dark .user-badge--level-leaf {
background: color-mix(in srgb, var(--j13-green, #23c36b) 18%, transparent);
color: var(--j13-green, #23c36b);
}
.dark .user-badge--level-crest {
background: color-mix(in srgb, #f59e0b 18%, transparent);
color: #fbbf24;
}
.dark .user-badge--level-crown {
background: color-mix(in srgb, #eab308 20%, transparent);
color: #facc15;
}
.user-badge--ach {
padding: 0.15rem;
}