Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Fix video player on mobile (#658)
Ameer Al Ashhab496c23a3988a
diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsxindex 1f5c261e5..28495bad7 100644--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx@@ -990,7 +990,7 @@ export const ShareVideo = forwardRef<{isPlaying ? (<motion.divkey="pause-button"- className="flex relative z-30 justify-center items-center size-20 bg-black bg-opacity-60 rounded-full"+ className="flex relative z-30 justify-center items-center bg-black bg-opacity-60 rounded-full size-20"initial={{ opacity: 0, scale: 0 }}animate={{scale: 1,@@ -1004,7 +1004,7 @@ export const ShareVideo = forwardRef<) : (<motion.divkey="play-button"- className="flex relative z-30 justify-center items-center size-20 bg-black bg-opacity-60 rounded-full"+ className="flex relative z-30 justify-center items-center bg-black bg-opacity-60 rounded-full size-20"initial={{ opacity: 0, scale: 0 }}animate={{scale: 1,@@ -1048,7 +1048,7 @@ export const ShareVideo = forwardRef<<div className="flex flex-col items-center"><divstyle={{ boxShadow: "0 0 100px rgba(0, 0, 0, 0.75)" }}- className="bg-black rounded-lg border border-gray-600 overflow-hidden"+ className="overflow-hidden bg-black rounded-lg border border-gray-600"><divclassName="bg-black"@@ -1077,7 +1077,7 @@ export const ShareVideo = forwardRef<<div className="mt-2 text-center space-y-0.5">{chapters.length > 0 && longestDuration > 0 && (<div- className="text-sm text-white font-medium leading-tight"+ className="text-sm font-medium leading-tight text-white"style={{ textShadow: "0 0 3px rgba(0, 0, 0, 0.7)" }}>{(() => {@@ -1096,7 +1096,7 @@ export const ShareVideo = forwardRef<</div>)}<div- className="text-sm text-white font-medium"+ className="text-sm font-medium text-white"style={{ textShadow: "0 0 3px rgba(0, 0, 0, 0.7)" }}>{formatTimeWithMilliseconds(previewTime)}@@ -1116,9 +1116,7 @@ export const ShareVideo = forwardRef<className="h-6 cursor-pointer"onMouseDown={handleSeekMouseDown}onMouseMove={(e) => {- if (seeking) {- handleSeekMouseMove(e);- }+ handleSeekMouseMove(e);}}onMouseUp={handleSeekMouseUp}onMouseLeave={() => {@@ -1126,11 +1124,8 @@ export const ShareVideo = forwardRef<}}onTouchStart={handleSeekMouseDown}onTouchMove={(e) => {- if (seeking) {- handleSeekMouseMove(e);- }+ handleSeekMouseMove(e);}}- onTouchEnd={(e) => handleSeekMouseUp(e, true)}>{!isLoading && comments !== null && (<div className="-mt-6 w-full md:-mt-6">@@ -1156,7 +1151,7 @@ export const ShareVideo = forwardRef<return (<divkey={comment.id}- className="absolute z-10 text-sm transition-all hover:scale-125 -mt-5 md:-mt-5"+ className="absolute z-10 -mt-5 text-sm transition-all hover:scale-125 md:-mt-5"style={{left: `${commentPosition}%`,}}@@ -1216,7 +1211,7 @@ export const ShareVideo = forwardRef<}}><div- className="w-full h-full bg-gray-400 bg-opacity-50 group-hover:bg-opacity-70 transition-colors"+ className="w-full h-full bg-gray-400 bg-opacity-50 transition-colors group-hover:bg-opacity-70"style={{boxShadow: "0 0 20px rgba(0,0,0,0.6)",borderRight:@@ -1297,7 +1292,7 @@ export const ShareVideo = forwardRef<</button></span><div className="flex items-center space-x-2">- <div className="text-xs sm:text-sm text-white font-medium select-none tabular text-clip overflow-hidden whitespace-nowrap">+ <div className="overflow-hidden text-xs font-medium text-white whitespace-nowrap select-none sm:text-sm tabular text-clip">{formatTime(currentTime)} - {formatTime(longestDuration)}</div>{chapters.length > 0 && longestDuration > 0 && (