Skip to content

Commit 955d9db

Browse files
authored
style: Modify terminal connection style issues (#11425)
Refs #11413
1 parent 3c1549e commit 955d9db

File tree

1 file changed

+3
-55
lines changed
  • frontend/src/views/terminal/terminal

1 file changed

+3
-55
lines changed

frontend/src/views/terminal/terminal/index.vue

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@
206206
:props="defaultProps"
207207
:filter-node-method="filterHost"
208208
:empty-text="$t('terminal.noHost')"
209-
class="host-tree compact"
210-
:style="{ 'max-height': '200px' }"
209+
class="host-tree"
211210
>
212211
<template #default="{ node, data }">
213212
<span class="custom-tree-node w-full">
@@ -613,59 +612,8 @@ onMounted(() => {
613612
}
614613
615614
.host-tree {
616-
:deep(.el-tree-node) {
617-
.el-tree-node__content {
618-
height: 36px;
619-
padding: 0 12px;
620-
621-
&:hover {
622-
background-color: var(--el-fill-color-light);
623-
}
624-
}
625-
626-
.el-tree-node__label {
627-
flex: 1;
628-
padding-left: 8px;
629-
}
630-
631-
.el-tree-node__expand-icon {
632-
margin-right: 8px;
633-
}
634-
}
635-
636-
:deep(.el-tree__empty-block) {
637-
padding: 24px 0;
638-
min-height: auto;
639-
}
640-
641-
:deep(.el-tree__empty-text) {
642-
color: var(--el-text-color-secondary);
643-
font-size: 13px;
644-
}
645-
646-
&.compact {
647-
:deep(.el-tree-node) {
648-
.el-tree-node__content {
649-
height: 28px;
650-
padding: 0 8px;
651-
}
652-
653-
.el-tree-node__label {
654-
padding-left: 4px;
655-
}
656-
657-
.el-tree-node__expand-icon {
658-
margin-right: 4px;
659-
font-size: 12px;
660-
}
661-
}
662-
663-
:deep(.el-tree-node__children) {
664-
.el-tree-node__content {
665-
padding-left: 20px;
666-
}
667-
}
668-
}
615+
max-height: 300px;
616+
overflow-y: auto;
669617
}
670618
671619
.search-container {

0 commit comments

Comments
 (0)