Fix theme thumbnail width (#3082)

This commit is contained in:
Mattermost Build
2019-08-08 15:59:55 +02:00
committed by Elias Nahum
parent 088d375ff2
commit b931733695

View File

@@ -12,8 +12,6 @@ import {
import {makeStyleSheetFromTheme} from 'app/utils/theme';
const {width: deviceWidth, height: deviceHeight} = Dimensions.get('window');
const checkmark = require('assets/images/themes/check.png');
const tilePadding = 8;
@@ -38,7 +36,8 @@ const ThemeTile = (props) => {
);
const tilesPerLine = isLandscape || isTablet ? 4 : 2;
const fullWidth = isLandscape ? deviceHeight - 40 : deviceWidth;
const {width: deviceWidth} = Dimensions.get('window');
const fullWidth = isLandscape ? deviceWidth - 40 : deviceWidth;
const layoutStyle = {
container: {
width: (fullWidth / tilesPerLine) - tilePadding,