Skip to content

Commit

Permalink
Fix ConversationPanel push/pop for RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumi-signal committed Nov 22, 2023
1 parent cea5685 commit 5815a37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ts/state/smart/ConversationPanel.tsx
Expand Up @@ -49,7 +49,6 @@ type AnimationProps<T> = {
};

function doAnimate({
isRTL,
onAnimationStarted,
onAnimationDone,
overlay,
Expand All @@ -74,7 +73,6 @@ function doAnimate({
const animation = animateNode.animate(panel.keyframes, {
...ANIMATION_CONFIG,
id: 'panel-animation',
direction: isRTL ? 'reverse' : 'normal',
});

onAnimationStarted();
Expand Down Expand Up @@ -155,7 +153,7 @@ export function ConversationPanel({
ref: animateRef,
keyframes: [
{ transform: 'translateX(0%)' },
{ transform: 'translateX(100%)' },
{ transform: isRTL ? 'translateX(-100%)' : 'translateX(100%)' },
],
},
});
Expand All @@ -178,7 +176,7 @@ export function ConversationPanel({
panel: {
ref: animateRef,
keyframes: [
{ transform: 'translateX(100%)' },
{ transform: isRTL ? 'translateX(-100%)' : 'translateX(100%)' },
{ transform: 'translateX(0%)' },
],
},
Expand Down

0 comments on commit 5815a37

Please sign in to comment.