fix(ui): 修复删除按钮图标不显示问题
移除 motion.button 的 initial opacity 设置,避免覆盖 CSS hover 样式
This commit is contained in:
@@ -152,8 +152,8 @@ export function Sidebar({
|
||||
<div className="text-xs text-gray-500">{session.messageCount} messages</div>
|
||||
</div>
|
||||
<motion.button
|
||||
initial={{ opacity: 0 }}
|
||||
whileHover={{ scale: 1.1 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
onClick={(e) => handleDelete(session.id, e)}
|
||||
className="opacity-0 group-hover:opacity-100 p-1 hover:bg-gray-600 rounded transition-opacity"
|
||||
aria-label="Delete session"
|
||||
|
||||
Reference in New Issue
Block a user