fixed image size in th tag inside table

This commit is contained in:
Sadaqat Ali 2022-02-16 18:00:05 +05:00
parent feeea6996e
commit 916459f7a7
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;
}