) => {
e.stopPropagation();
@@ -183,6 +189,7 @@ export default function VideoControls({
MIN_ITEMS_WRAP &&
"min-w-[75%] flex-wrap",
)}
+ ref={containerRef}
>
{video && features.volume && (
@@ -230,7 +237,9 @@ export default function VideoControls({
}}
>
{`${playbackRate}x`}
-
+
onSetPlaybackRate(parseFloat(rate))}
>
diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx
index 769ff7aa7..5d89b180e 100644
--- a/web/src/components/ui/dropdown-menu.tsx
+++ b/web/src/components/ui/dropdown-menu.tsx
@@ -56,9 +56,11 @@ DropdownMenuSubContent.displayName =
const DropdownMenuContent = React.forwardRef<
React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, sideOffset = 4, ...props }, ref) => (
-
+ React.ComponentPropsWithoutRef & {
+ portalProps?: DropdownMenuPrimitive.DropdownMenuPortalProps;
+ }
+>(({ className, portalProps, sideOffset = 4, ...props }, ref) => (
+