Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2025-08-24 15:30:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29dbc760443318f5247817798b71018ce4edef9d
29dbc760
1 parent
cda55aba
The console on the right side of the web interface displays a height limit.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
templates/index.html
templates/index.html
View file @
29dbc76
...
...
@@ -85,6 +85,7 @@
flex
:
1
;
display
:
flex
;
height
:
calc
(
100vh
-
140px
);
min-height
:
0
;
/* 允许子元素缩小 */
}
/* 嵌入页面区域 */
...
...
@@ -115,6 +116,7 @@
display
:
flex
;
flex-direction
:
column
;
background-color
:
#ffffff
;
min-height
:
0
;
/* 允许子元素缩小 */
}
/* 应用切换按钮 */
...
...
@@ -178,6 +180,8 @@
overflow-y
:
auto
;
white-space
:
pre-wrap
;
word-break
:
break-all
;
min-height
:
0
;
/* 允许内容缩小 */
max-height
:
100%
;
/* 限制最大高度 */
}
.console-line
{
...
...
@@ -477,12 +481,7 @@
div
.
textContent
=
line
;
consoleOutput
.
appendChild
(
div
);
// 保持最近100行
const
lines
=
consoleOutput
.
children
;
if
(
lines
.
length
>
100
)
{
consoleOutput
.
removeChild
(
lines
[
0
]);
}
// 自动滚动到底部显示最新内容
consoleOutput
.
scrollTop
=
consoleOutput
.
scrollHeight
;
}
...
...
Please
register
or
login
to post a comment