Merge pull request #2192 from ecency/sa/table-images-bugfix

fixed image size in th tag inside table
This commit is contained in:
Feruz M 2022-02-16 15:05:21 +02:00 committed by GitHub
commit a110169043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ import { TouchableWithoutFeedback } from "react-native-gesture-handler";
}
const imgStyle = {
width:imgWidth,
width:imgWidth - 10,
height:imgHeight,
backgroundColor: onLoadCalled ? 'transparent' : EStyleSheet.value('$primaryGray')
}

View File

@ -176,7 +176,7 @@ export const PostHtmlRenderer = memo(
}
//return divided width based on number td tags
if (tnode.parent.tagName === 'td') {
if (tnode.parent.tagName === 'td' || tnode.parent.tagName === 'th') {
const cols = tnode.parent.parent.children.length;
return contentWidth / cols;
}