fix: deduplicate VolumeSliderItem and add missing stopPropagation

- Extract VolumeSliderItem to voiceMenuItems.tsx (was duplicated in
  VoiceUser.tsx and VoiceChannel.tsx)
- Add e.stopPropagation() to all imperative context menu handlers
  for consistency with useContextMenu hook behavior
This commit is contained in:
Jannis Braun
2026-03-20 18:55:58 +01:00
parent 443259a527
commit 68378c7d83
4 changed files with 40 additions and 61 deletions
@@ -208,6 +208,7 @@ export function StreamTile({ tile, large }: StreamTileProps) {
const handleContextMenu = useCallback(
(e: React.MouseEvent) => {
e.preventDefault();
e.stopPropagation();
const items: ContextMenuItem[] = [];