mirror of
https://github.com/beilunyang/moemail.git
synced 2025-12-24 11:30:51 +08:00
fix: Delete button cannot be clicked on mobile
This commit is contained in:
@@ -202,7 +202,10 @@ export function EmailList({ onEmailSelect, selectedEmailId }: EmailListProps) {
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="opacity-0 group-hover:opacity-100 h-8 w-8"
|
||||
onClick={() => setEmailToDelete(email)}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
setEmailToDelete(email)
|
||||
}}
|
||||
>
|
||||
<Trash2 className="h-4 w-4 text-destructive" />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user