File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
src/routes/mission/$missionId/-components Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function MissionDetailHeader({
1818 navigate ( { to : "/mission" } ) ;
1919 }
2020 if ( type === "mypage" ) {
21- navigate ( { to : "/mypage " } ) ;
21+ navigate ( { to : "/my " } ) ;
2222 }
2323 } }
2424 >
Original file line number Diff line number Diff line change @@ -30,13 +30,22 @@ export default function MissionNotTriedReviewing({
3030
3131 < div className = "max-w-[80vw] aspect-[3/4] bg-neutral-800 border-8 border-neutral-100 rounded-[40px] overflow-hidden" >
3232 < video
33- src = { videoUrl }
3433 className = "w-full h-full object-cover"
35- controls
3634 playsInline
37- >
38- < track kind = "captions" />
39- </ video >
35+ muted
36+ loop
37+ autoPlay
38+ src = { videoUrl }
39+ onClick = { ( event ) => {
40+ const video = event . currentTarget as HTMLVideoElement ;
41+ const isPaused = video . paused ;
42+ if ( isPaused ) {
43+ void video . play ( ) ;
44+ } else {
45+ video . pause ( ) ;
46+ }
47+ } }
48+ />
4049 </ div >
4150 </ div >
4251
You can’t perform that action at this time.
0 commit comments