diff --git a/public/js/editormd/editormd.min.js b/public/js/editormd/editormd.min.js
index 758c2fcce..d4173f50f 100755
--- a/public/js/editormd/editormd.min.js
+++ b/public/js/editormd/editormd.min.js
@@ -831,7 +831,7 @@
if (scrollTop === 0) {
preview.scrollTop(0);
}
- else if (scrollTop + height >= cmScroll.scrollHeight - 16) {
+ else if (scrollTop + height >= cmScroll.scrollHeight - 30) {
preview.scrollTop(preview[0].scrollHeight);
}
else {
@@ -1471,7 +1471,6 @@
var preview = $this.preview;
var codeMirror = $this.codeMirror;
var codeView = codeMirror.find(".CodeMirror-scroll");
-
var height = codeView.height();
var scrollTop = codeView.scrollTop();
var percent = (scrollTop / codeView[0].scrollHeight);
@@ -1483,11 +1482,11 @@
var tocMenuHeight = preview.find(".editormd-toc-menu").height();
tocMenuHeight = (!tocMenuHeight) ? 0 : tocMenuHeight;
-
+
if (scrollTop === 0) {
preview.scrollTop(0);
}
- else if (scrollTop + height >= codeView[0].scrollHeight - 16) {
+ else if (scrollTop + height >= codeView[0].scrollHeight - 30) {
preview.scrollTop(preview[0].scrollHeight);
}
else {
@@ -1595,8 +1594,8 @@
codeMirror.find(".CodeMirror-scroll").bind(mouseOrTouch("scroll", "touchmove"), function (event) {
var height = $(this).height();
var scrollTop = $(this).scrollTop();
- var percent = (scrollTop / $(this)[0].scrollHeight);
-
+ var percent = (scrollTop / ($(this)[0].scrollHeight-100));
+ console.log(percent);
var tocHeight = 0;
preview.find(".markdown-toc-list").each(function () {
@@ -1609,7 +1608,7 @@
if (scrollTop === 0) {
preview.scrollTop(0);
}
- else if (scrollTop + height >= $(this)[0].scrollHeight - 16) {
+ else if (scrollTop + height >= $(this)[0].scrollHeight - 30) {
preview.scrollTop(preview[0].scrollHeight);
}
else {
diff --git a/src/App.css b/src/App.css
index 02f6395eb..b75e2e842 100644
--- a/src/App.css
+++ b/src/App.css
@@ -76,7 +76,7 @@ body {
}
/* md多空格 */
.markdown-body p {
- margin:10px 0px!important;
+ /* margin:10px 0px!important; */
font-size: 16px !important;
white-space: pre-wrap;
}
diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx
index fd6b6661b..51df3a40d 100644
--- a/src/forge/Main/CoderDepot.jsx
+++ b/src/forge/Main/CoderDepot.jsx
@@ -492,7 +492,7 @@ function CoderDepot(props){
}
{
checkIfLogin && checkIfLogin()?
- eventTrack(`/${owner}/${projectsId}/webIDE/tree/${defaultBranch}`)}>Web IDE
+ eventTrack(`/${owner}/${projectsId}/webIDE/tree/${branchName||defaultBranch}`)}>Web IDE
:
{showLoginDialog(`/${owner}/${projectsId}`)}}>Web IDE
}
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index 3a3db57a4..012cbacce 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -493,7 +493,7 @@ class MessageCount extends Component {
)}
- {operate && (
+ {userLogin && projectDetail && permission && (