1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fixed Android's svg spans full width

This commit is contained in:
xmflsct
2023-01-15 19:59:48 +01:00
parent 9a289489fa
commit 86c3e91439
2 changed files with 11 additions and 8 deletions

View File

@@ -36,6 +36,7 @@ export interface Props {
disableDetails?: boolean
disableOnPress?: boolean
isConversation?: boolean
noBackground?: boolean
}
// When the poll is long
@@ -45,7 +46,8 @@ const TimelineDefault: React.FC<Props> = ({
highlighted = false,
disableDetails = false,
disableOnPress = false,
isConversation = false
isConversation = false,
noBackground = false
}) => {
const status = item.reblog ? item.reblog : item
const rawContent = useRef<string[]>([])
@@ -77,7 +79,7 @@ const TimelineDefault: React.FC<Props> = ({
padding: disableDetails
? StyleConstants.Spacing.Global.PagePadding / 1.5
: StyleConstants.Spacing.Global.PagePadding,
backgroundColor: colors.backgroundDefault,
backgroundColor: noBackground ? undefined : colors.backgroundDefault,
paddingBottom: disableDetails ? StyleConstants.Spacing.Global.PagePadding / 1.5 : 0
}
const main = () => (