enable comment open thread and table width fixed

This commit is contained in:
feruz 2020-01-22 06:48:37 +02:00
parent 2a3228403b
commit cb74e80443
4 changed files with 15 additions and 9 deletions

View File

@ -214,7 +214,7 @@ const CommentsContainer = ({
),
);
});
} else if (index === 1 && isOwnProfile) {
} else if (index === 1) {
navigation.navigate({
routeName: ROUTES.SCREENS.POST,
key: get(selectedComment, 'permlink'),

View File

@ -58,13 +58,11 @@ const CommentsView = ({
});
};
const menuItems = isOwnProfile
? [
intl.formatMessage({ id: 'post.copy_link' }),
intl.formatMessage({ id: 'post.open_thread' }),
intl.formatMessage({ id: 'alert.cancel' }),
]
: [intl.formatMessage({ id: 'post.copy_link' }), intl.formatMessage({ id: 'alert.cancel' })];
const menuItems = [
intl.formatMessage({ id: 'post.copy_link' }),
intl.formatMessage({ id: 'post.open_thread' }),
intl.formatMessage({ id: 'alert.cancel' }),
];
if (!hideManyCommentsButton && hasManyComments) {
return (
@ -114,7 +112,7 @@ const CommentsView = ({
ref={commentMenu}
options={menuItems}
title={get(selectedComment, 'summary')}
cancelButtonIndex={isOwnProfile ? 2 : 1}
cancelButtonIndex={2}
onPress={index => handleOnPressCommentMenu(index, selectedComment)}
/>
</Fragment>

View File

@ -256,6 +256,10 @@ const CommentBody = ({
align-items: 'center';
justify-content: 'center';
}
table {
table-layout: fixed;
width: 100%;
}
th {
flex: 1;
justify-content: 'center';

View File

@ -240,6 +240,10 @@ const PostBody = ({
align-items: 'center';
justify-content: 'center';
}
table {
table-layout: fixed;
width: 100%;
}
th {
flex: 1;
justify-content: 'center';