From 40a6b56506019d272e950c2ff36bdf8864d65baa Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 8 Jul 2025 12:30:39 +0300 Subject: [PATCH] fix list padding not being pressable --- src/components/ListCard.tsx | 12 +++++++----- src/components/Post/Embed/ListEmbed.tsx | 13 +++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/ListCard.tsx b/src/components/ListCard.tsx index 30156ee0d3..e34830ea9c 100644 --- a/src/components/ListCard.tsx +++ b/src/components/ListCard.tsx @@ -1,10 +1,10 @@ import React from 'react' import {View} from 'react-native' import { - AppBskyGraphDefs, + type AppBskyGraphDefs, AtUri, moderateUserList, - ModerationUI, + type ModerationUI, } from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -22,10 +22,10 @@ import { Outer, SaveButton, } from '#/components/FeedCard' -import {Link as InternalLink, LinkProps} from '#/components/Link' +import {Link as InternalLink, type LinkProps} from '#/components/Link' import * as Hider from '#/components/moderation/Hider' import {Text} from '#/components/Typography' -import * as bsky from '#/types/bsky' +import type * as bsky from '#/types/bsky' /* * This component is based on `FeedCard` and is tightly coupled with that @@ -50,7 +50,9 @@ type Props = { showPinButton?: boolean } -export function Default(props: Props) { +export function Default( + props: Props & Omit, +) { const {view, showPinButton} = props const moderationOpts = useModerationOpts() const moderation = moderationOpts diff --git a/src/components/Post/Embed/ListEmbed.tsx b/src/components/Post/Embed/ListEmbed.tsx index 82685d2715..ef392e18c4 100644 --- a/src/components/Post/Embed/ListEmbed.tsx +++ b/src/components/Post/Embed/ListEmbed.tsx @@ -1,5 +1,4 @@ import React from 'react' -import {View} from 'react-native' import {moderateUserList} from '@atproto/api' import {useModerationOpts} from '#/state/preferences/moderation-opts' @@ -16,10 +15,10 @@ export function ListEmbed({ }) { const t = useTheme() return ( - - - + ) } @@ -35,7 +34,9 @@ export function ModeratedListEmbed({ : undefined }, [embed.view, moderationOpts]) return ( - + )