mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
ui: Optimize terminal display effect
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="terminal-container">
|
||||
<div ref="terminal" class="terminal" @contextmenu.prevent="showContextmenu"></div>
|
||||
<div ref="terminal" class="rtty-terminal" @contextmenu.prevent="showContextmenu"></div>
|
||||
<el-button v-show="isConnected && !showKeyboard" @click="toggleKeyboard" type="primary" size="small" circle class="keyboard-toggle-btn">⌨</el-button>
|
||||
<RttyKeyboard v-show="showKeyboard" @keypress="handleKeypress" @close="hideKeyboard" class="floating-keyboard"/>
|
||||
<el-dialog v-model="fileCtx.modal" :title="$t('Upload file to device')" @close="onUploadDialogClosed" :width="400">
|
||||
@@ -403,9 +403,17 @@ onUnmounted(() => {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.terminal {
|
||||
margin: 5px;
|
||||
.rtty-terminal {
|
||||
height: 100%;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
:deep(.terminal) {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
:deep(.xterm .xterm-viewport) {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.floating-keyboard {
|
||||
@@ -435,8 +443,4 @@ onUnmounted(() => {
|
||||
.keyboard-toggle-btn:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
:deep(.xterm .xterm-viewport) {
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user