Browse Source

Merge pull request #1781 from yanCode/fix/css-top-actions

fix: [CSS] the position of top-action buttons
Yifei Zhang 1 year ago
parent
commit
94be03ec4f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/components/home.module.scss

+ 3 - 2
app/components/home.module.scss

@@ -369,7 +369,7 @@
   &:hover {
     .chat-message-top-actions {
       opacity: 1;
-      right: 10px;
+      transform: translateX(10px);
       pointer-events: all;
     }
   }
@@ -405,11 +405,12 @@
 }
 
 .chat-message-top-actions {
+  min-width: 120px;
   font-size: 12px;
   position: absolute;
   right: 20px;
   top: -26px;
-  left: 100px;
+  left: 30px;
   transition: all ease 0.3s;
   opacity: 0;
   pointer-events: none;