/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/chat/conversation/common.tsx
14 строк
585 B
chrisnojima
refactor(chat): simplify thread view components (#29304)
11 июн 2026, 21:06
Не верифицирован
11 июн 2026, 21:06
14e7a0f
Код
Авторство
О чём код?
import * as Kb from '@/common-adapters' import type {zoomImage} from '@/constants/chat/helpers' type ZoomedImageSizing = ReturnType<typeof zoomImage> // Thumbnail cropped to a fixed box: the outer box clips, the inner box uses // zoomImage's negative margins to center the overflowing image. export const ZoomedImage = (p: {src: string; sizing?: ZoomedImageSizing}) => ( <Kb.Box2 direction="vertical" overflow="hidden" relative={true}> <Kb.Box2 direction="vertical" style={p.sizing?.margins}> <Kb.Image src={p.src} style={p.sizing?.dims} /> </Kb.Box2> </Kb.Box2> )