fix: reply button always visible (mail-style icon), works on own replies

- Reply button: always visible (opacity 0.5), only icon (no text),
  hover → full opacity + primary color
- Works on own replies (no restriction on replying to self)
- Removed .reply-item:hover .reply-btn (was requiring parent hover)
This commit is contained in:
lezi-fun committed 2026-08-11 21:08:55 +08:00
1 parent 2bb1f4227e
commit 7bf9e37036
2 files changed
+20 -9

No files matched your search

+2 -2
View File
@@ -99,8 +99,8 @@ export default function ReplyList({ postId, onRefresh }) {
{r.username || '匿名用户'}
</span>
<span className="reply-time">{rTime}</span>
<button className="btn-sm btn-secondary reply-btn" onClick={() => startReply(r.username)}>
<Icon name="reply" size={12} /> 回复
<button className="reply-btn" onClick={() => startReply(r.username)} title="回复">
<Icon name="reply" size={13} />
</button>
{currentUser && (currentUser.id === r.user_id || currentUser.role === 'admin') && (
<button className="btn-sm btn-danger reply-delete-btn" onClick={() => handleDelete(r.id)}>