Commit 3a3cc948 authored by dindigala's avatar dindigala
Browse files

refactor: remove unnecessary code and modify styles

parent 50d4c5f9
Pipeline #229449 passed with stages
in 5 minutes and 51 seconds
......@@ -8,7 +8,6 @@
:nodes="tree"
:selected-color="$q.dark.isActive ? 'grey' : ''"
:selected.sync="selected"
:style="treeStyle"
>
<template
#default-body="{node}"
......@@ -59,17 +58,10 @@ export default {
sequenceindex: 0,
};
},
computed: {
treeStyle() {
return `max-height:${this.height}px;`;
},
},
created() {
this.fasCaretRight = fasCaretRight;
},
mounted() {
this.handleTreePanelHeight();
// select tree node
this.selected = treestore.state.selectedItemTree || this.manifests[0].sequence[0].id;
......@@ -106,15 +98,6 @@ export default {
}
});
},
methods: {
handleTreePanelHeight() {
const el = document.querySelector('.item-content');
if (el && this.height !== el.clientHeight) {
this.height = el.clientHeight - (document.querySelector('.tabs-container')?.clientHeight || 0); // Tab spacing height.
}
},
},
};
</script>
......@@ -123,6 +106,7 @@ export default {
display: flex;
flex: 1;
flex-direction: column;
height: 100%;
}
.item-content {
......@@ -131,4 +115,8 @@ export default {
flex-direction: column;
overflow: auto;
}
.q-tree {
height: 100%;
}
</style>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment