Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -11,5 +11,5 @@ export const Image = forwardRef<HTMLImageElement, ImgHTMLAttributes<HTMLImageEle
|
||||
{...props}
|
||||
ref={ref}
|
||||
/>
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -23,5 +23,5 @@ export const MediaControl = as<'div', MediaControlProps>(
|
||||
{after && <Box direction="Column">{after}</Box>}
|
||||
{children}
|
||||
</Box>
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -44,13 +44,13 @@ export const Video = forwardRef<HTMLVideoElement, VideoProps>(
|
||||
if (disableControls) {
|
||||
return (
|
||||
// eslint-disable-next-line jsx-a11y/media-has-caption
|
||||
<video
|
||||
className={classNames(css.Video, className)}
|
||||
{...props}
|
||||
ref={videoRef}
|
||||
loop={props.autoPlay}
|
||||
muted={props.autoPlay}
|
||||
playsInline
|
||||
<video
|
||||
className={classNames(css.Video, className)}
|
||||
{...props}
|
||||
ref={videoRef}
|
||||
loop={props.autoPlay}
|
||||
muted={props.autoPlay}
|
||||
playsInline
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -62,19 +62,32 @@ export const Video = forwardRef<HTMLVideoElement, VideoProps>(
|
||||
onMouseLeave={() => setShowControls(false)}
|
||||
>
|
||||
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
|
||||
<video
|
||||
className={classNames(css.Video, className)}
|
||||
{...props}
|
||||
ref={videoRef}
|
||||
loop={props.autoPlay}
|
||||
muted={props.autoPlay}
|
||||
<video
|
||||
className={classNames(css.Video, className)}
|
||||
{...props}
|
||||
ref={videoRef}
|
||||
loop={props.autoPlay}
|
||||
muted={props.autoPlay}
|
||||
playsInline
|
||||
controlsList={onExpand ? 'nofullscreen' : undefined}
|
||||
onDoubleClick={onExpand ? (e) => { e.stopPropagation(); onExpand(); } : undefined}
|
||||
onDoubleClick={
|
||||
onExpand
|
||||
? (e) => {
|
||||
e.stopPropagation();
|
||||
onExpand();
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
|
||||
|
||||
{onExpand && (
|
||||
<Box className={classNames(videoCss.VideoControlsOverlay, !showControls && videoCss.VideoControlsOverlayHidden)} gap="200">
|
||||
<Box
|
||||
className={classNames(
|
||||
videoCss.VideoControlsOverlay,
|
||||
!showControls && videoCss.VideoControlsOverlayHidden,
|
||||
)}
|
||||
gap="200"
|
||||
>
|
||||
<TooltipProvider
|
||||
tooltip={
|
||||
<Tooltip variant="Secondary">
|
||||
@@ -101,5 +114,5 @@ export const Video = forwardRef<HTMLVideoElement, VideoProps>(
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user