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

Narrower attachments

For #704
This commit is contained in:
xmflsct
2023-02-12 15:50:55 +01:00
parent 3eec9d1af0
commit 398f34d95d
5 changed files with 14 additions and 9 deletions

View File

@ -13,6 +13,7 @@ import { getGlobalStorage, setGlobalStorage, useGlobalStorage } from '@utils/sto
import { StorageGlobal } from '@utils/storage/global'
import { StyleConstants } from '@utils/styles/constants'
import layoutAnimation from '@utils/styles/layoutAnimation'
import { isLargeDevice } from '@utils/styles/scaling'
import { useTheme } from '@utils/styles/ThemeManager'
import { debounce } from 'lodash'
import { useCallback, useEffect, useRef, useState } from 'react'
@ -260,7 +261,7 @@ const Explore = ({ route: { key: page } }: { route: { key: 'Explore' } }) => {
? (instanceQuery.data as Mastodon.Instance_V1)?.short_description ||
instanceQuery.data?.description
: undefined,
lines: 2
lines: isLargeDevice ? 1 : 2
})}
</Placeholder>
</View>