Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Video - remove `MediaInsetBorder` when fullscreen (#8476)

* lift up useFullscreen, hide mediainsetborder when fullscreen

* Revert "lift up useFullscreen, hide mediainsetborder when fullscreen"

This reverts commit 66b17657197e26d9b4c5c951e7cc9eef66519d6d.

* just move border outside of div that gets fullscreened

authored by

Samuel Newman and committed by
GitHub
9e186dd2 32dfcc3a

+4 -4
+3 -3
src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerWeb.tsx
··· 1 - import React, {useEffect, useId, useRef, useState} from 'react' 1 + import {useEffect, useId, useRef, useState} from 'react' 2 2 import {View} from 'react-native' 3 3 import {type AppBskyEmbedVideo} from '@atproto/api' 4 4 import {msg} from '@lingui/macro' ··· 28 28 const videoRef = useRef<HTMLVideoElement>(null) 29 29 const [focused, setFocused] = useState(false) 30 30 const [hasSubtitleTrack, setHasSubtitleTrack] = useState(false) 31 - const [hlsLoading, setHlsLoading] = React.useState(false) 31 + const [hlsLoading, setHlsLoading] = useState(false) 32 32 const figId = useId() 33 33 const {_} = useLingui() 34 34 ··· 101 101 fullscreenRef={containerRef} 102 102 hasSubtitleTrack={hasSubtitleTrack} 103 103 /> 104 - <MediaInsetBorder /> 105 104 </div> 105 + <MediaInsetBorder /> 106 106 </View> 107 107 ) 108 108 }
+1 -1
src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx
··· 1 - import React, {useCallback, useEffect, useRef, useState} from 'react' 1 + import {useCallback, useEffect, useRef, useState} from 'react' 2 2 import {Pressable, View} from 'react-native' 3 3 import {msg, Trans} from '@lingui/macro' 4 4 import {useLingui} from '@lingui/react'