Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 59191a0

Browse files
committed
fix:树形结构区域自动适应高度
1 parent 30bb76f commit 59191a0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# GoRedisManager
22
redis web客户端管理平台。优点:跨平台、部署简单。欢迎star!!
33

4+
![logo](readme/redis-login.JPG)
5+
46
![logo](readme/index.JPG)
57

68
## 功能清单

readme/index.JPG

120 KB
Loading

readme/redis-login.JPG

25.8 KB
Loading

web/views/template/index/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585

8686
<div class="row">
87-
<div class="col-sm-5" style="padding-right: 0px;border-right: 3px solid rgb(217 217 217);">
87+
<div id="left-sec" class="col-sm-5" style="padding-right: 0px;border-right: 3px solid rgb(217 217 217);">
8888

8989
<form action="/switch" method="post" class="ajaxForm" autocomplete="off">
9090
<div class="col-sm-12" style="margin-top: 10px;">
@@ -164,7 +164,7 @@
164164
</div>
165165

166166

167-
<div class="col-sm-12" style="margin-top: 15px;overflow-y: auto;height: 300px;">
167+
<div id="tree" class="col-sm-12">
168168
<div id="main" class="demo-tree">
169169
<ul id="keys"></ul>
170170
</div>
@@ -414,5 +414,6 @@ <h5 class="modal-title" id="exampleModalLabel">添加键值</h5>
414414
parent.document.getElementById('iframepage').style.height = height+'px';
415415
}
416416

417+
$("#tree").attr('style','height:'+($(document).height() - $("#tree").offset().top - 20)+'px;margin-top: 15px;overflow-y: auto;');
417418
</script>
418419
{{end}}

0 commit comments

Comments
 (0)