Skip to content

Commit

Permalink
tweak translation
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 5, 2024
1 parent d60d475 commit cd42451
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/lib/custom-animations/GestureActionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,17 @@ function createInterpolation({
let res
if (secondThreshold) {
res = {
inputRange: [0, firstThreshold + offset, secondThreshold + offset],
outputRange: ['transparent', firstColor!, secondColor!],
inputRange: [
0,
firstThreshold,
firstThreshold + offset - 20,
secondThreshold,
],
outputRange: ['transparent', firstColor!, firstColor!, secondColor!],
}
} else {
res = {
inputRange: [0, firstThreshold + offset],
inputRange: [0, firstThreshold],
outputRange: ['transparent', firstColor!],
}
}
Expand Down
9 changes: 8 additions & 1 deletion src/screens/Messages/components/ChatListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {useDialogControl} from '#/components/Dialog'
import {ConvoMenu} from '#/components/dms/ConvoMenu'
import {LeaveConvoPrompt} from '#/components/dms/LeaveConvoPrompt'
import {Bell2Off_Filled_Corner0_Rounded as BellStroke} from '#/components/icons/Bell2'
import {Envelope_Filled_Stroke2_Corner0_Rounded} from '#/components/icons/Envelope'
import {Trash_Stroke2_Corner0_Rounded} from '#/components/icons/Trash'
import {Link} from '#/components/Link'
import {useMenuControl} from '#/components/Menu'
Expand Down Expand Up @@ -205,7 +206,13 @@ function ChatListItemReady({
<GestureActionView
actions={{
leftFirst: {
threshold: 150,
threshold: 120,
color: t.palette.primary_500,
icon: Envelope_Filled_Stroke2_Corner0_Rounded,
action: () => {},
},
leftSecond: {
threshold: 225,
color: t.palette.negative_500,
icon: Trash_Stroke2_Corner0_Rounded,
action: () => {
Expand Down

0 comments on commit cd42451

Please sign in to comment.