Skip to content

Commit b2342e6

Browse files
committed
Fix file manager listing height calculation for many files
1 parent dcbfb8a commit b2342e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/UiFileManager/media/css/UiFileManager.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ h2 { font-weight: lighter; }
6767
.files .thead .td a:last-of-type { font-weight: bold; }
6868
.files .thead .td a { text-decoration: none; }
6969
.files .thead .td a:hover { text-decoration: underline; }
70-
.files .tbody { max-height: calc(100vh - 100x); overflow-y: auto; overflow-x: hidden; }
70+
.files .tbody { max-height: calc(100vh - 95px); overflow-y: auto; overflow-x: hidden; }
7171
.files .tr { background-color: white; }
7272
.files .td { padding: 10px 20px; border-top: 1px solid #EEE; font-size: 13px; white-space: nowrap; }
7373
.files .td.full { width: 100%; box-sizing: border-box; white-space: pre-line; }
@@ -128,7 +128,7 @@ h2 { font-weight: lighter; }
128128
/* Editor */
129129

130130
.editor { background-color: #F7F7FC; float: left; width: calc(100% - 280px); box-sizing: border-box; transition: all 0.6s; }
131-
.editor .CodeMirror { height: calc(100vh - 73px); visibility: hidden; }
131+
.editor .CodeMirror { height: calc(100vh - 79px); visibility: hidden; }
132132
.editor textarea { width: 100%; height: 800px; white-space: pre; }
133133
.editor .title { margin-left: 20px; }
134134
.editor .editor-head {

plugins/UiFileManager/media/css/all.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ h2 { font-weight: lighter; }
130130
.files .thead .td a:last-of-type { font-weight: bold; }
131131
.files .thead .td a { text-decoration: none; }
132132
.files .thead .td a:hover { text-decoration: underline; }
133-
.files .tbody { max-height: calc(100vh - 100x); overflow-y: auto; overflow-x: hidden; }
133+
.files .tbody { max-height: calc(100vh - 95px); overflow-y: auto; overflow-x: hidden; }
134134
.files .tr { background-color: white; }
135135
.files .td { padding: 10px 20px; border-top: 1px solid #EEE; font-size: 13px; white-space: nowrap; }
136136
.files .td.full { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box ; white-space: pre-line; }
@@ -191,7 +191,7 @@ h2 { font-weight: lighter; }
191191
/* Editor */
192192

193193
.editor { background-color: #F7F7FC; float: left; width: calc(100% - 280px); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box ; -webkit-transition: all 0.6s; -moz-transition: all 0.6s; -o-transition: all 0.6s; -ms-transition: all 0.6s; transition: all 0.6s ; }
194-
.editor .CodeMirror { height: calc(100vh - 73px); visibility: hidden; }
194+
.editor .CodeMirror { height: calc(100vh - 79px); visibility: hidden; }
195195
.editor textarea { width: 100%; height: 800px; white-space: pre; }
196196
.editor .title { margin-left: 20px; }
197197
.editor .editor-head {

0 commit comments

Comments
 (0)