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', backgroundColor: '$primaryBackgroundColor',
borderTopWidth: 0.1, borderTopWidth: 0.1,
shadowOpacity: 0.1, shadowOpacity: 0.1,
elevation: 3,
}, },
safeArea: { safeArea: {
backgroundColor: '$primaryBackgroundColor', backgroundColor: '$primaryBackgroundColor',

View File

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

View File

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

View File

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

View File

@ -22,6 +22,7 @@ export default {
$tagColor: '#c1c5c7', $tagColor: '#c1c5c7',
$bubblesBlue: '#5CCDFF', $bubblesBlue: '#5CCDFF',
$iconColor: '#c1c5c7', $iconColor: '#c1c5c7',
$darkIconColor: '#c1c5c7',
$borderTopColor: '#cfcfcf', $borderTopColor: '#cfcfcf',
$dangerColor: '#fff', $dangerColor: '#fff',
$warningColor: '#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.active_votes.sort((a, b) => b.rshares - a.rshares);
_post.body = markDown2Html(post.body); _post.body = markDown2Html(post.body);
if (isSummary) _post.summary = getPostSummary(post.body, 150); if (isSummary) _post.summary = getPostSummary(_post.body, 150);
if (currentUserName) { if (currentUserName) {
_post.is_voted = isVoted(_post.active_votes, currentUserName); _post.is_voted = isVoted(_post.active_votes, currentUserName);