|
@@ -2,7 +2,7 @@ import { StyleSheet, Text, View, TouchableOpacity, TouchableWithoutFeedback, Ima
|
|
|
import React, { useContext } from 'react'
|
|
|
import BookmarkButton from '../../atoms/Buttons/BookmarkButton'
|
|
|
import ShareButton from '../../atoms/Buttons/ShareButton'
|
|
|
-import { moderateScale, screenWidth, verticalScale } from '../../../constants/metrics'
|
|
|
+import { horizontalScale, moderateScale, screenWidth, verticalScale } from '../../../constants/metrics'
|
|
|
import fonts from '../../../constants/fonts'
|
|
|
import colors from '../../../constants/colors'
|
|
|
import { getScreenType, getTimestamp } from '../../../constants/functions'
|
|
@@ -20,11 +20,11 @@ const HorizontalNewsCardVariant = ({ headline, image, category, timestamp, tagli
|
|
|
cardContainer: {
|
|
|
borderRadius: moderateScale(16),
|
|
|
width: 'auto',
|
|
|
- maxWidth: getScreenType === "Mobile" ? 320 : screenWidth,
|
|
|
+ maxWidth: 340,
|
|
|
maxHeight: verticalScale(220),
|
|
|
backgroundColor: currentTheme === 'light' ? colors().white: colors().black_variant,
|
|
|
- elevation: 2,
|
|
|
-
|
|
|
+ elevation: 4,
|
|
|
+ marginHorizontal: horizontalScale(8),
|
|
|
padding: moderateScale(16)
|
|
|
// paddingBottom:fonts.getSize(24)
|
|
|
},
|