diff --git a/src/components/player/internals/ContextMenu/Links.tsx b/src/components/player/internals/ContextMenu/Links.tsx index dce1c13b..1bfbf63f 100644 --- a/src/components/player/internals/ContextMenu/Links.tsx +++ b/src/components/player/internals/ContextMenu/Links.tsx @@ -56,14 +56,12 @@ export function Link(props: { children?: ReactNode; className?: string; }) { - const classes = classNames( - "flex py-2 px-3 rounded w-full -ml-3 w-[calc(100%+1.5rem)]", - { - "cursor-default": !props.clickable, - "hover:bg-video-context-border cursor-pointer": props.clickable, - "bg-video-context-border": props.active, - } - ); + const classes = classNames("flex py-2 px-3 rounded w-full -ml-3", { + "cursor-default": !props.clickable, + "hover:bg-video-context-border cursor-pointer": props.clickable, + "bg-video-context-border": props.active, + }); + const styles = { width: "calc(100% + 1.5rem)" }; const content = (
@@ -73,11 +71,20 @@ export function Link(props: { ); if (!props.onClick) { - return
{content}
; + return ( +
+ {content} +
+ ); } return ( - );