File tree Expand file tree Collapse file tree 1 file changed +35
-14
lines changed
frontend/src/views/host/file-management/terminal Expand file tree Collapse file tree 1 file changed +35
-14
lines changed Original file line number Diff line number Diff line change 88 :fullScreen =" true"
99 >
1010 <template #content >
11- <el-alert :closable =" false" :title =" $t('terminal.localConnJump')" type =" info" />
12- <Terminal class =" mt-2" style =" height : calc (100vh - 170px )" ref =" terminalRef" ></Terminal >
13- <div >
14- <el-cascader
15- v-model =" quickCmd"
16- :options =" commandTree"
17- @change =" quickInput"
18- :show-all-levels =" false"
19- class =" w-full -mt-6"
20- placeholder =" "
21- filterable
22- >
23- <template #prefix >{{ $t('terminal.quickCommand') }}</template >
24- </el-cascader >
11+ <div class =" terminal-container" >
12+ <el-alert :closable =" false" :title =" $t('terminal.localConnJump')" type =" info" />
13+ <Terminal class =" terminal-content" ref =" terminalRef" ></Terminal >
14+ <div class =" quick-command" >
15+ <el-cascader
16+ v-model =" quickCmd"
17+ :options =" commandTree"
18+ @change =" quickInput"
19+ :show-all-levels =" false"
20+ class =" w-full"
21+ placeholder =" "
22+ filterable
23+ >
24+ <template #prefix >{{ $t('terminal.quickCommand') }}</template >
25+ </el-cascader >
26+ </div >
2527 </div >
2628 </template >
2729 </DrawerPro >
@@ -91,3 +93,22 @@ defineExpose({
9193 acceptParams ,
9294});
9395 </script >
96+
97+ <style scoped>
98+ .terminal-container {
99+ display : flex ;
100+ flex-direction : column ;
101+ height : calc (100vh - 140px );
102+ }
103+
104+ .terminal-content {
105+ flex : 1 ;
106+ overflow : hidden ;
107+ margin-top : 8px ;
108+ }
109+
110+ .quick-command {
111+ flex-shrink : 0 ;
112+ margin-top : 1px ;
113+ }
114+ </style >
You can’t perform that action at this time.
0 commit comments