mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

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

[Video] Misc player style tweaks (#5064)

* use actual black rather than theme black

* adjust time/mute indicators

authored by samuel.fm and committed by

GitHub eb868a04 17d82a64

+31 -30
+1 -1
src/view/com/composer/videos/VideoPreview.tsx
··· 43 43 a.overflow_hidden, 44 44 a.border, 45 45 t.atoms.border_contrast_low, 46 - {backgroundColor: t.palette.black}, 46 + {backgroundColor: 'black'}, 47 47 ]}> 48 48 <VideoView 49 49 player={player}
+2 -3
src/view/com/composer/videos/VideoPreview.web.tsx
··· 5 5 import {CompressedVideo} from '#/lib/media/video/types' 6 6 import {clamp} from '#/lib/numbers' 7 7 import {ExternalEmbedRemoveBtn} from 'view/com/composer/ExternalEmbedRemoveBtn' 8 - import {atoms as a, useTheme} from '#/alf' 8 + import {atoms as a} from '#/alf' 9 9 10 10 export function VideoPreview({ 11 11 asset, ··· 18 18 setDimensions: (width: number, height: number) => void 19 19 clear: () => void 20 20 }) { 21 - const t = useTheme() 22 21 const ref = useRef<HTMLVideoElement>(null) 23 22 24 23 useEffect(() => { ··· 54 53 a.rounded_sm, 55 54 {aspectRatio}, 56 55 a.overflow_hidden, 57 - {backgroundColor: t.palette.black}, 56 + {backgroundColor: 'black'}, 58 57 ]}> 59 58 <ExternalEmbedRemoveBtn onRemove={clear} /> 60 59 <video
+1 -1
src/view/com/util/post-embeds/VideoEmbed.tsx
··· 50 50 a.rounded_sm, 51 51 a.overflow_hidden, 52 52 {aspectRatio}, 53 - {backgroundColor: t.palette.black}, 53 + {backgroundColor: 'black'}, 54 54 a.my_xs, 55 55 ]}> 56 56 <ErrorBoundary renderError={renderError} key={key}>
+2 -3
src/view/com/util/post-embeds/VideoEmbed.web.tsx
··· 9 9 HLSUnsupportedError, 10 10 VideoEmbedInnerWeb, 11 11 } from '#/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerWeb' 12 - import {atoms as a, useTheme} from '#/alf' 12 + import {atoms as a} from '#/alf' 13 13 import {ErrorBoundary} from '../ErrorBoundary' 14 14 import {useActiveVideoWeb} from './ActiveVideoWebContext' 15 15 import * as VideoFallback from './VideoEmbedInner/VideoFallback' 16 16 17 17 export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { 18 - const t = useTheme() 19 18 const ref = useRef<HTMLDivElement>(null) 20 19 const gate = useGate() 21 20 const {active, setActive, sendPosition, currentActiveView} = ··· 64 63 style={[ 65 64 a.w_full, 66 65 {aspectRatio}, 67 - {backgroundColor: t.palette.black}, 66 + {backgroundColor: 'black'}, 68 67 a.relative, 69 68 a.rounded_sm, 70 69 a.my_xs,
+3 -3
src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx
··· 29 29 paddingHorizontal: 6, 30 30 paddingVertical: 3, 31 31 position: 'absolute', 32 - left: 5, 33 - bottom: 5, 34 - minHeight: 20, 32 + left: 6, 33 + bottom: 6, 34 + minHeight: 21, 35 35 justifyContent: 'center', 36 36 }, 37 37 ]}>
+16 -13
src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
··· 167 167 /> 168 168 <Animated.View 169 169 entering={FadeInDown.duration(300)} 170 - style={{ 171 - backgroundColor: 'rgba(0, 0, 0, 0.5)', 172 - borderRadius: 6, 173 - paddingHorizontal: 6, 174 - paddingVertical: 3, 175 - position: 'absolute', 176 - bottom: 5, 177 - right: 5, 178 - minHeight: 20, 179 - justifyContent: 'center', 180 - }}> 170 + style={[ 171 + a.absolute, 172 + a.rounded_full, 173 + a.justify_center, 174 + { 175 + backgroundColor: 'rgba(0, 0, 0, 0.5)', 176 + paddingHorizontal: 4, 177 + paddingVertical: 4, 178 + bottom: 6, 179 + right: 6, 180 + minHeight: 21, 181 + minWidth: 21, 182 + }, 183 + ]}> 181 184 <Pressable 182 185 onPress={toggleMuted} 183 186 style={a.flex_1} ··· 186 189 accessibilityRole="button" 187 190 hitSlop={HITSLOP_30}> 188 191 {isMuted ? ( 189 - <MuteIcon width={14} fill={t.palette.white} /> 192 + <MuteIcon width={13} fill={t.palette.white} /> 190 193 ) : ( 191 - <UnmuteIcon width={14} fill={t.palette.white} /> 194 + <UnmuteIcon width={13} fill={t.palette.white} /> 192 195 )} 193 196 </Pressable> 194 197 </Animated.View>
+6 -6
yarn.lock
··· 9918 9918 lodash.uniq "^4.5.0" 9919 9919 9920 9920 caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001517, caniuse-lite@^1.0.30001520: 9921 - version "1.0.30001596" 9922 - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001596.tgz" 9923 - integrity sha512-zpkZ+kEr6We7w63ORkoJ2pOfBwBkY/bJrG/UZ90qNb45Isblu8wzDgevEOrRL1r9dWayHjYiiyCMEXPn4DweGQ== 9921 + version "1.0.30001655" 9922 + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz" 9923 + integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== 9924 9924 9925 9925 caniuse-lite@^1.0.30001587: 9926 - version "1.0.30001620" 9927 - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz#78bb6f35b8fe315b96b8590597094145d0b146b4" 9928 - integrity sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew== 9926 + version "1.0.30001655" 9927 + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz" 9928 + integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== 9929 9929 9930 9930 case-anything@^2.1.13: 9931 9931 version "2.1.13"