about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-30 15:03:47 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-30 15:03:47 +0100
commite64909d8bfe084565595c4a277af837c57b65efa (patch)
treef9f3f9f10248febc7a6870591c6d9f7ac210d5d7 /app
parentafdd75e1f914ed5064cae2c9f96f9d494b79b5fe (diff)
Move translate button above media attachments/preview cards
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/components/status_content.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js
index 2c59c054f..c59f42220 100644
--- a/app/javascript/flavours/glitch/components/status_content.js
+++ b/app/javascript/flavours/glitch/components/status_content.js
@@ -404,12 +404,11 @@ class StatusContent extends React.PureComponent {
               onMouseLeave={this.handleMouseLeave}
               lang={lang}
             />
+            {!hidden && translateButton}
             {media}
           </div>
 
           {extraMedia}
-
-          {!hidden && translateButton}
         </div>
       );
     } else if (parseClick) {
@@ -430,9 +429,9 @@ class StatusContent extends React.PureComponent {
             onMouseLeave={this.handleMouseLeave}
             lang={lang}
           />
+          {translateButton}
           {media}
           {extraMedia}
-          {translateButton}
         </div>
       );
     } else {
@@ -451,9 +450,9 @@ class StatusContent extends React.PureComponent {
             onMouseLeave={this.handleMouseLeave}
             lang={lang}
           />
+          {translateButton}
           {media}
           {extraMedia}
-          {translateButton}
         </div>
       );
     }