From d8e1629fa1a6a5bb9b034b196956e56a0e97f005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E775174143?= <775174143@qq.com> Date: Sun, 30 Sep 2018 23:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=B1=85=E4=B8=AD=E6=94=B9?= =?UTF-8?q?=E5=9B=9E=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/code_show.css | 27 +++++++++++----------- static/js/source.js | 4 ++-- templates/projects/filesub/file-right.html | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/static/css/code_show.css b/static/css/code_show.css index 948a087..769f257 100644 --- a/static/css/code_show.css +++ b/static/css/code_show.css @@ -634,10 +634,10 @@ a:hover { /* 提交评论框 */ #ItemcommentPanel { - position: fixed; - right: 6rem; - width: 5rem; - top: 3rem; + position: absolute; + right: 60px; + width: 4rem; + top: 19px; border-radius: 4px; background-color: #fff; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); @@ -698,16 +698,15 @@ a:hover { /* 问题显示 */ #ItemquestionPanel { - width: 700px; - position: fixed; + width: 700px; + position: absolute; max-height: 500px; overflow-y: auto; background-color: #fff; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); - right:5.5rem; - top: 2rem; + top: 23px; border-radius: 4px; - + right: 32px; z-index: 3; color:black; padding: 15px 0px 3px 0px; @@ -912,14 +911,14 @@ pre.prettyprint { margin-top: 10px; } .addno-panel { - position: fixed; - width: 440px; + position: absolute; + width: 410px; border: 1px solid #ccc; border-radius: 5px; background: #fff; - z-index: 236; - right: 7rem; - top: 2rem; + z-index: 1; + right: 5px; + top: 27px; display: none; } diff --git a/static/js/source.js b/static/js/source.js index 71c3fd6..545007b 100644 --- a/static/js/source.js +++ b/static/js/source.js @@ -1492,9 +1492,9 @@ function inject_addnoPanel_html(item,file_id,linenum) { $("#ItemcommentPanel").remove(); $("#ItemquestionPanel").remove(); - // '
'+ - html_str = '
'+ + html_str = '
'+ + '
'+ '
'+ '
为该行或该代码块添加注释或者提问:
'+ '

'+ diff --git a/templates/projects/filesub/file-right.html b/templates/projects/filesub/file-right.html index 7e2b251..3fb419b 100644 --- a/templates/projects/filesub/file-right.html +++ b/templates/projects/filesub/file-right.html @@ -78,7 +78,7 @@

-{#
#} +
{% if isdir %}
为该代码模块添加注释或者提问: