Ver Fonte

nissaya气泡内容与关键字段维护 #894

bhikkhu-kosalla-china há 3 anos atrás
pai
commit
b043c47852

+ 1 - 1
public/app/guide/guide.css

@@ -27,7 +27,7 @@ guide ol {
 }
 .guide_contence {
 	/*border-top: 7px;*/
-	position: fixed;
+	position: absolute;
 	border: 1px solid var(--border-line-color);
 	border-radius: 5px;
 	top: 100%;

+ 11 - 8
public/app/guide/guide.js

@@ -19,16 +19,19 @@ function guide_init() {
 	});
 
 	$("guide").mouseenter(function (event) {
-		let mouse_x=event.clientX
-		let mouse_y=event.clientY
-	if ($(this).offset().left < $(document.body).width() / 2) {//左边
-		$(this).children(".guide_contence").first().css("left",(mouse_x-20)+"px")
-		$(this).children(".guide_contence").first().css("top",mouse_y+"px")
-		$(this).children(".guide_contence").first().css("max-width",($(document.body).width()-mouse_x-20)+"px")
+		let mouse_x=event.pageX
+		let mouse_y=event.pageY
+		$(this).children(".guide_contence").first().css("top","15px")
+        $(this).children(".guide_contence").first().css("width","max-content")
+        //if ($(this).offset().left < $(document.body).width() / 2) {//左边
+    if (mouse_x < ($(document.body).width() / 2)) {//左边
+    		$(this).children(".guide_contence").first().css("left","-10px")
+            $(this).children(".guide_contence").first().css("max-width",("calc(100vw - "+mouse_x+"px - 20px"))
 	} else {//右边
-		$(this).children(".guide_contence").first().css("right",($(document.body).width()-mouse_x-20)+"px")
-		$(this).children(".guide_contence").first().css("top",mouse_y+"px")
+		//$(this).children(".guide_contence").first().css("right",($(document.body).width()-mouse_x-20)+"px")
+		//$(this).children(".guide_contence").first().css("top",mouse_y+"px")
 		$(this).children(".guide_contence").first().css("max-width",(mouse_x-20)+"px")
+        $(this).children(".guide_contence").first().css("right","-10px")
 	}
 	if ($(this).children(".guide_contence").first().html().length > 0) {
 			return;

+ 2 - 2
public/app/term/term.css

@@ -489,8 +489,8 @@ note:hover .add_new {
 	min-height: 1em;
 	transition: all 0.2s ease;
 	display: none;
-	max-height: 50vh;
-	overflow: scroll;
+	/*max-height: 50vh;*/
+	/*overflow: scroll;*/
 	margin-top: 2em;
 }
 .tool_bar {

+ 1 - 5
public/app/term/term_popup.js

@@ -27,11 +27,7 @@ function term_popup_init() {
   });
 
   $(".term_link").mouseenter(function (event) {
-	let mouse_x=event.clientX - 20
-	let mouse_y=event.clientY
-	$(this).children(".guide_contence").first().css("left",mouse_x+"px")
-	$(this).children(".guide_contence").first().css("top",mouse_y+"px")
-if ($(this).children(".guide_contence").first().html().length > 0) {
+    if ($(this).children(".guide_contence").first().html().length > 0) {
       return;
     }
     let gid = $(this).attr("gid");

+ 2 - 0
public/app/users_guide/zh-cn/grammar_my_api.md

@@ -1,3 +1,5 @@
 # 缅文语尾
 
 巴利词api的一种情况,表示:也。
+
+git clone -b agile https://github.com/YOUR FORK/mint.git ~/workspace/mint

+ 2 - 1
public/app/users_guide/zh-cn/grammar_my_dat2.md

@@ -4,4 +4,5 @@
 
 |格位|含义|翻译建议|关系|
 |-|-|-|-|
-|[**目的**格](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/declension/dat.html)|表达**动作的目的**<br>相当于英语“for”|为了……|[目的 ➡ 动词<br>REC](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/basic-relation/dat/dat-rec.html)|
+|[**目的**格](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/declension/dat.html)|表达**动作的目的**<br>相当于英语“for”|为了……|[目的 ➡ 动词<br>PUR](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/basic-relation/dat/dat-pur.html)|
+|[**不定**体](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/declension/dat.html)|表达**目的的动作**<br>相当于英语“to do”|用来……|[目的 ➡ 动词<br>PUR](https://assets-hk.wikipali.org/pali-handbook/zh-Hans/basic-relation/verb/inf.html)|