added scroll for Tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-6">
|
<div id ="card-flow-codeviewer" class="flex-1">
|
||||||
<div class="card flow-codeviewer">
|
<div class="card flow-codeviewer">
|
||||||
<h5>File Explorer</h5>
|
<h5>File Explorer</h5>
|
||||||
<p v-if="nodes && nodes.length">
|
<p v-if="nodes && nodes.length">
|
||||||
@@ -147,6 +147,15 @@ const skeletonConfigs = [
|
|||||||
{ width: "80%", height: "1.5rem" }
|
{ width: "80%", height: "1.5rem" }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
watch(selectedFile, () => {
|
||||||
|
if (selectedFile.value) {
|
||||||
|
const cardFlowCodeViewer = document.getElementById('card-flow-codeviewer');
|
||||||
|
if (cardFlowCodeViewer) {
|
||||||
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user