style: reply hierarchy + cleaner reply-preview bar
- Replies with a reply_to target get left-border + indent (Discourse thread feel) via :has() selector - Reply-box preview bar: removed blue box, now a clean bottom-border row (回复 @user + 取消 button) - reply-to indicator: left border line, primary on hover - Works in light & dark mode (uses --border/--text-light vars)
This commit is contained in:
1 parent
4d0d5edec3
commit
d9c4079619
2 files changed
+54
-12
No files matched your search
@@ -129,14 +129,11 @@ export default function ReplyList({ postId, onRefresh }) {
|
||||
<div id="replyArea" ref={replyAreaRef} style={{ marginTop: 24, borderTop: '1px solid var(--border)', paddingTop: 20 }}>
|
||||
<h3 style={{ fontSize: 16, marginBottom: 12 }}><Icon name="message" size={16} /> 发表回复</h3>
|
||||
{replyTo && (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 8, padding: '6px 10px', background: 'var(--primary-light)', color: 'var(--primary)', borderRadius: 6, fontSize: 13 }}>
|
||||
<Icon name="reply" size={13} /> 正在回复 <strong>@{replyTo}</strong>
|
||||
<button
|
||||
onClick={() => setReplyTo(null)}
|
||||
style={{ marginLeft: 'auto', background: 'none', border: 'none', cursor: 'pointer', color: 'var(--text-light)', fontSize: 12 }}
|
||||
>
|
||||
取消
|
||||
</button>
|
||||
<div className="reply-preview-bar">
|
||||
<Icon name="reply" size={13} />
|
||||
<span>回复</span>
|
||||
<strong>@{replyTo}</strong>
|
||||
<button className="reply-preview-cancel" onClick={() => setReplyTo(null)}>取消</button>
|
||||
</div>
|
||||
)}
|
||||
<textarea
|
||||
|
||||
Reference in new issue
Block a user