better history delete
This commit is contained in:
parent
8c7a6f2174
commit
8bc4980aa4
@ -417,7 +417,7 @@ function ComparisonHistoryZH({ onSelectHistory }: { onSelectHistory: (item: Hist
|
|||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
onClick={(e) => handleDeleteItem(e, item.id)}
|
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="删除此比较"
|
title="删除此比较"
|
||||||
>
|
>
|
||||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
@ -114,7 +114,7 @@ export default function ComparisonHistory({ onSelectHistory }: ComparisonHistory
|
|||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
onClick={(e) => handleDeleteItem(e, item.id)}
|
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"
|
title="Delete this comparison"
|
||||||
>
|
>
|
||||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
Loading…
Reference in New Issue
Block a user