fix:termail 样式调整

This commit is contained in:
zhangyu
2022-11-29 16:28:03 +08:00
parent 1574b19cc4
commit 2c692d580b
3 changed files with 9 additions and 5 deletions

View File

@@ -1013,13 +1013,11 @@
0% { 0% {
-webkit-transform: translateY(1200px); -webkit-transform: translateY(1200px);
transform: translateY(1200px); transform: translateY(1200px);
opacity: 0.7;
} }
80% { 80% {
-webkit-transform: translateY(0px); -webkit-transform: translateY(0px);
transform: translateY(0px); transform: translateY(0px);
opacity: 0.7;
} }
100% { 100% {

View File

@@ -44,14 +44,17 @@
min-height: 50px; min-height: 50px;
max-height: 146px; max-height: 146px;
line-height: 48px; line-height: 48px;
padding-bottom: 15px;
border-radius: 0 0 2px 2px;
width: 100%; width: 100%;
overflow-y: auto; overflow-y: auto;
.file-state-panel-item{ .file-state-panel-item{
height: 48px; height: 48px;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 12px 14px 0px 20px; padding: 3px 14px 3px 20px;
display: flex; display: flex;
align-items: center;
justify-content: space-around; justify-content: space-around;
.item-icon{ .item-icon{
width: 28px; width: 28px;
@@ -78,10 +81,12 @@
line-height: 15px; line-height: 15px;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
margin-bottom: 3px;
} }
.item-progress-middle{ .item-progress-middle{
} }
.item-progress-bottom{ .item-progress-bottom{
margin-top: 3px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 10px; font-size: 10px;
@@ -96,6 +101,7 @@
height: 28px; height: 28px;
color: #fff; color: #fff;
line-height: 28px; line-height: 28px;
text-align: center;
} }
} }
} }

View File

@@ -85,7 +85,7 @@ export default {
const consoleBox = document.getElementById('ternimalContainer' + this.idIndex) const consoleBox = document.getElementById('ternimalContainer' + this.idIndex)
consoleBox.style.height = `${consoleHeigt - 55}px` consoleBox.style.height = `${consoleHeigt - 55}px`
// 调整终端可视区域高度 // 调整终端可视区域高度
document.getElementsByClassName('xterm-screen')[this.idIndex].style.height = `${consoleHeigt - 10}px` document.getElementsByClassName('xterm-screen')[this.idIndex].style.height = `${consoleHeigt - 10 - 30}px`
this.$nextTick(() => { // 解决进入全屏和退出全屏是底部隐藏 this.$nextTick(() => { // 解决进入全屏和退出全屏是底部隐藏
this.setFontSize(this.fontSize) this.setFontSize(this.fontSize)
}) })
@@ -341,7 +341,7 @@ export default {
rows: this.term.rows rows: this.term.rows
} }
// 调整终端可视区域高度 // 调整终端可视区域高度
document.getElementsByClassName('xterm-screen')[this.idIndex].style.height = height + 'px' document.getElementsByClassName('xterm-screen')[this.idIndex].style.height = height - 30 + 'px'
this.$nextTick(() => { this.$nextTick(() => {
this.term.resize(this.term.cols, this.term.rows) this.term.resize(this.term.cols, this.term.rows)
this.$post('terminal/resize', winStyle).then(response => { this.$post('terminal/resize', winStyle).then(response => {