Ver código fonte

:art: 义註channel弹出工具条移到左边

visuddhinanda@gmail.com 4 anos atrás
pai
commit
190b232846
2 arquivos alterados com 11 adições e 2 exclusões
  1. 2 2
      public/app/term/note.js
  2. 9 0
      public/app/term/term.css

+ 2 - 2
public/app/term/note.js

@@ -2558,10 +2558,10 @@ function term_parent(paliword) {
 }
 
 function setSentToolBarEvent(){
-    $('.sent_tran_inner').off('mouseenter').on('mouseenter',function(){
+    $('.sent_tran_inner').not('.commentary').off('mouseenter').on('mouseenter',function(){
         $(this).children('.tool_bar').first().children('.right').show();
     });
-    $('.sent_tran_inner').off('mouseleave').on('mouseleave',function(){
+    $('.sent_tran_inner').not('.commentary').off('mouseleave').on('mouseleave',function(){
         $(this).children('.tool_bar').first().children('.right').hide();
     })
 }

+ 9 - 0
public/app/term/term.css

@@ -744,6 +744,15 @@ pw {
 .list_with_head {
 	position: relative;
 }
+
+.commentary>.sent_tran_inner>.tool_bar > .right {
+    display: block;
+    left:6.2em;
+    margin-top: calc(-2.1em - 8px);
+}
+.sent_tran.commentary>.sent_tran_inner{
+    padding-top: 2.2em;
+}
 .body > .edit {
 	display: none;
 }