better history delete

This commit is contained in:
songtianlun 2025-07-03 10:19:50 +08:00
parent 8c7a6f2174
commit 8bc4980aa4
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ function ComparisonHistoryZH({ onSelectHistory }: { onSelectHistory: (item: Hist
</span>
<button
onClick={(e) => handleDeleteItem(e, item.id)}
className="opacity-0 group-hover:opacity-100 text-red-500 hover:text-red-700 p-1 rounded transition-all duration-200"
className="text-red-500 hover:text-red-700 p-1 rounded transition-all duration-200"
title="删除此比较"
>
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">

View File

@ -114,7 +114,7 @@ export default function ComparisonHistory({ onSelectHistory }: ComparisonHistory
</span>
<button
onClick={(e) => handleDeleteItem(e, item.id)}
className="opacity-0 group-hover:opacity-100 text-red-500 hover:text-red-700 p-1 rounded transition-all duration-200"
className="text-red-500 hover:text-red-700 p-1 rounded transition-all duration-200"
title="Delete this comparison"
>
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">