feat: hover reply button → quote + scroll to reply box
- Each reply shows a 回复 button on hover (always visible on touch) - Click: sets '正在回复 @user' banner, smooth-scrolls to reply box, focuses textarea; 取消 clears it - New reply icon (corner-up-left); clear replyTo after submit - Reply markdown already rendered via renderMarkdown (sanitized)
This commit is contained in:
1 parent
d757bde780
commit
2bb1f4227e
3 files changed
+50
-2
No files matched your search
@@ -3073,3 +3073,17 @@ a.btn-secondary {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== 回复操作按钮:悬停显示 ===== */
|
||||
.reply-btn {
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
.reply-item:hover .reply-btn,
|
||||
.reply-item:focus-within .reply-btn {
|
||||
opacity: 1;
|
||||
}
|
||||
/* 触屏设备(无 hover):始终显示 */
|
||||
@media (hover: none) {
|
||||
.reply-btn { opacity: 1; }
|
||||
}
|
||||
Reference in new issue
Block a user