Просмотр исходного кода

Merge pull request #525 from visuddhinanda/master

🐛 打开逐词解析时清空窗口控件
visuddhinanda 4 лет назад
Родитель
Сommit
581980fd6b
3 измененных файлов с 9 добавлено и 3 удалено
  1. 2 2
      app/pcdl/index.js
  2. 7 0
      app/pcdl/index.php
  3. 0 1
      app/uwbw/wbw_channal_list.js

+ 2 - 2
app/pcdl/index.js

@@ -40,10 +40,10 @@ function index_load_collect_new() {
 				}
 				html += "</div>";
 				if (iterator.subtitle) {
-					html += "<div>" + iterator.subtitle + "</div>";
+					html += "<div class='subtitle'>" + iterator.subtitle + "</div>";
 				}
 				if (iterator.summary) {
-					html += "<div>" + iterator.summary + "</div>";
+					html += "<div> class='summary'" + iterator.summary + "</div>";
 				}
 
 				html += "<div style='margin-top:1em;'>" + iterator.username.nickname + "</div>";

+ 7 - 0
app/pcdl/index.php

@@ -74,6 +74,13 @@ require_once '../pcdl/html_head.php';
 		.article_right a {
 			color: var(--main-color);
 		}
+		.summary{
+			overflow: hidden;
+			text-overflow: ellipsis;
+			display: -webkit-box;
+			-webkit-line-clamp: 3;
+			-webkit-box-orient: vertical;
+		}
 
 		.title a,
 		.course_right title {

+ 0 - 1
app/uwbw/wbw_channal_list.js

@@ -150,7 +150,6 @@ function wbw_create(index) {
 		function (data) {
 			let msg = JSON.parse(data);
 			if (msg.status == 0) {
-				$("#wbw_channal_list_dlg_content").html("正在打开编辑窗口");
 				let book = msg.book;
 				let paralist = msg.para.join(",");
 				let channel = msg.channel;