Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Otavio Stasiak committed Oct 9, 2024
1 parent 349deb5 commit 073cf34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/containers/message/Components/Attachments/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import I18n from '../../../../i18n';
import { fileDownload, isIOS } from '../../../../lib/methods/helpers';
import EventEmitter from '../../../../lib/methods/helpers/events';
import { useTheme } from '../../../../theme';
import sharedStyles from '../../../../views/Styles';
import { LISTENER } from '../../../Toast';
import Markdown from '../../../markdown';
import MessageContext from '../../Context';
Expand All @@ -19,6 +18,7 @@ import { getThumbnailAsync } from 'expo-video-thumbnails';
import OverlayComponent from '../OverlayComponent';
import FastImage from 'react-native-fast-image';
import { CustomIcon } from '../../../CustomIcon';
import { themes } from '../../../../lib/constants';

const SUPPORTED_TYPES = ['video/quicktime', 'video/mp4', ...(isIOS ? [] : ['video/3gp', 'video/mkv'])];
const isTypeSupported = (type: string) => SUPPORTED_TYPES.indexOf(type) !== -1;
Expand All @@ -38,7 +38,7 @@ const styles = StyleSheet.create({
},
playerIcon: {
position: 'absolute',
shadowColor: '#000',
shadowColor: themes.light.backdropColor,
shadowOpacity: 0.3,
shadowOffset: {
width: 1,
Expand Down Expand Up @@ -91,7 +91,7 @@ const Thumbnail = ({ url, encrypted = false }: ThumbnailProps) => {
<OverlayComponent style={styles.overlay} loading={image.loading} iconName='arrow-down-circle' />
) : (
<>
<FastImage style={styles.image} source={{ uri: image.uri }} />
<FastImage style={styles.image} resizeMode='cover' source={{ uri: image.uri }} />
<CustomIcon name={icon} size={54} color='#fff' style={styles.playerIcon} />
</>
)}
Expand Down

0 comments on commit 073cf34

Please sign in to comment.