This commit is contained in:
u-e 2018-12-24 18:38:35 +03:00
parent 1e0c8e5c6f
commit 71b46e1196
6 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,7 @@ export default EStyleSheet.create({
backgroundColor: '$primaryBackgroundColor',
borderTopWidth: 0.1,
shadowOpacity: 0.1,
elevation: 3,
},
safeArea: {
backgroundColor: '$primaryBackgroundColor',

View File

@ -14,7 +14,7 @@ export default EStyleSheet.create({
alignSelf: 'center',
},
rightIcon: {
color: '$primaryDarkText',
color: '$darkIconColor',
textAlign: 'center',
},
});

View File

@ -7,7 +7,6 @@ export default EStyleSheet.create({
marginLeft: 0,
marginTop: 5,
marginBottom: 10,
borderRadius: 5,
backgroundColor: '$primaryBackgroundColor',
shadowOpacity: 0.2,
shadowColor: '$shadowColor',

View File

@ -24,6 +24,7 @@ export default {
$bubblesBlue: '#5CCDFF',
$borderTopColor: '#757575',
$iconColor: '#788187',
$darkIconColor: '#526d91',
$dangerColor: '#fff',
$warningColor: '#fff',
$successColor: '#fff',

View File

@ -22,6 +22,7 @@ export default {
$tagColor: '#c1c5c7',
$bubblesBlue: '#5CCDFF',
$iconColor: '#c1c5c7',
$darkIconColor: '#c1c5c7',
$borderTopColor: '#cfcfcf',
$dangerColor: '#fff',
$warningColor: '#fff',

View File

@ -22,7 +22,7 @@ export const parsePost = (post, currentUserName, isSummary = false) => {
_post.active_votes.sort((a, b) => b.rshares - a.rshares);
_post.body = markDown2Html(post.body);
if (isSummary) _post.summary = getPostSummary(post.body, 150);
if (isSummary) _post.summary = getPostSummary(_post.body, 150);
if (currentUserName) {
_post.is_voted = isVoted(_post.active_votes, currentUserName);