Skip to content

Commit

Permalink
Merge pull request #2311 from hLinx/hotfix_3.6.x
Browse files Browse the repository at this point in the history
fix: 脚本的版本对比页面,滚动条失效 #2309
  • Loading branch information
hLinx authored Aug 4, 2023
2 parents 4ff1444 + 03d8b58 commit d7b3c56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 470 deletions.
31 changes: 15 additions & 16 deletions src/frontend/src/views/script-manage/common/diff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,19 @@
</bk-select>
</div>
</div>
<scroll-faker class="content-wraper">
<jb-diff
ref="diff"
class="diff-details"
:context="Infinity"
format="side-by-side"
:language="language"
:new-content="newContent"
:old-content="oldContent"
theme="dark" />
</scroll-faker>
<div class="content-wraper">
<scroll-faker>
<jb-diff
ref="diff"
class="diff-details"
:context="Infinity"
format="side-by-side"
:language="language"
:new-content="newContent"
:old-content="oldContent"
theme="dark" />
</scroll-faker>
</div>
</div>
<i
class="bk-icon icon-close"
Expand Down Expand Up @@ -297,10 +299,7 @@
<style lang="postcss">
.jb-diff-layout {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
padding: 8px 24px;
background-color: #fff;
Expand Down Expand Up @@ -411,7 +410,7 @@
}
.content-wraper {
max-height: calc(100vh - 92px);
height: calc(100vh - 92px);
}
.d2h-file-wrapper {
Expand Down
Loading

0 comments on commit d7b3c56

Please sign in to comment.