mirror of
https://github.com/beilunyang/moemail.git
synced 2026-06-08 17:10:01 +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"
|
variant="ghost"
|
||||||
size="icon"
|
size="icon"
|
||||||
className="opacity-0 group-hover:opacity-100 h-8 w-8"
|
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" />
|
<Trash2 className="h-4 w-4 text-destructive" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user