mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 19:06:39 +03:00
fixed image size in th tag inside table
This commit is contained in:
parent
feeea6996e
commit
916459f7a7
@ -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')
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user