Add repo file tree item link behavior (#34730)

Converts the repo file tree items into `<a>` elements to have default
link behavior. Dynamic content load is still done when no special key is
pressed while clicking on an item.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
bytedreamandwxiaoguang authored and GitHub committed 2025-06-20 02:28:19 +08:00
1 parent 0ea958dc58
commit 7346ae7cd4
5 files changed
+86 -105

No files matched your search

+1 -1
View File
@@ -60,8 +60,8 @@ function updateState(visible: boolean) {
</script>
<template>
<!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
<div v-if="store.fileTreeIsVisible" class="diff-file-tree-items">
<!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
<DiffFileTreeItem v-for="item in store.diffFileTree.TreeRoot.Children" :key="item.FullName" :item="item"/>
</div>
</template>