about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Schmidt <github@chsc.dk>2023-04-05 14:58:10 +0200
committerGitHub <noreply@github.com>2023-04-05 14:58:10 +0200
commitffd5b2eea4503c2ee389c7aa5dff9c51dbf9f846 (patch)
treee9c7b5d360da2dfbf4face8dd0dac9cc5f205f12
parent966d7cff2a3c46c9be61562dc3e1d0bc46d22b36 (diff)
Fix height of announcements not being updated when using reduced animations (#24354)
-rw-r--r--app/javascript/mastodon/features/getting_started/components/announcements.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/getting_started/components/announcements.jsx b/app/javascript/mastodon/features/getting_started/components/announcements.jsx
index 954f407f5..5f993d2c5 100644
--- a/app/javascript/mastodon/features/getting_started/components/announcements.jsx
+++ b/app/javascript/mastodon/features/getting_started/components/announcements.jsx
@@ -418,7 +418,7 @@ class Announcements extends ImmutablePureComponent {
         <img className='announcements__mastodon' alt='' draggable='false' src={mascot || elephantUIPlane} />
 
         <div className='announcements__container'>
-          <ReactSwipeableViews animateHeight={!reduceMotion} adjustHeight={reduceMotion} index={index} onChangeIndex={this.handleChangeIndex}>
+          <ReactSwipeableViews animateHeight animateTransitions={!reduceMotion} index={index} onChangeIndex={this.handleChangeIndex}>
             {announcements.map((announcement, idx) => (
               <Announcement
                 key={announcement.get('id')}