Skip to content

Commit 1363c4d

Browse files
committed
Highlight post background
1 parent 4efc432 commit 1363c4d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

apps/polycentric/src/features/post/Post.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const Post = memo(function Post({
108108

109109
return (
110110
<Pressable
111-
style={[
111+
style={({ pressed }) => [
112112
Atoms.w_full,
113113
Atoms.px_lg,
114114
Atoms.pt_md,
@@ -117,6 +117,9 @@ export const Post = memo(function Post({
117117
borderBottomWidth: 1,
118118
borderBottomColor: withHexOpacity(theme.palette.neutral_500, '20'),
119119
},
120+
pressed && {
121+
backgroundColor: withHexOpacity(theme.palette.neutral_500, '10'),
122+
},
120123
]}
121124
onPress={handlePress}
122125
disabled={disablePress}

apps/polycentric/src/features/post/PostImages.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export function PostImages({ images }: { images: v2.ImageSet[] }) {
6767
return (
6868
<>
6969
<Pressable
70+
unstable_pressDelay={300}
7071
onPress={(e) => {
7172
e.stopPropagation?.();
7273
openViewer(0);

0 commit comments

Comments
 (0)