diff --git a/web_src/js/components/ViewFileTreeItem.vue b/web_src/js/components/ViewFileTreeItem.vue
index b113748813..7a21227601 100644
--- a/web_src/js/components/ViewFileTreeItem.vue
+++ b/web_src/js/components/ViewFileTreeItem.vue
@@ -54,8 +54,10 @@ const doGotoSubModule = () => {
@click.stop="doGotoSubModule"
>
-
- {{ item.name }}
+
+
+ {{ item.name }}
+
{
@click.stop="doLoadFileContent"
>
-
-
{{ item.name }}
+
+
+ {{ item.name }}
+
{
@click.stop="doLoadFileContent"
>
-
-
{{ item.name }}
+
+
+ {{ item.name }}
+
{
@click.stop="doLoadDirContent"
>
-
-
-
-
{{ item.name }}
+
+
+
+
+
+
+ {{ item.name }}
+
@@ -99,16 +109,10 @@ const doGotoSubModule = () => {
display: flex;
flex-direction: column;
gap: 1px;
- margin-left: 13px;
+ margin-left: 14px;
border-left: 1px solid var(--color-secondary);
}
-.sub-items .item-file,
-.sub-items .item-symlink,
-.sub-items .item-submodule {
- padding-left: 18px;
-}
-
.item-directory.selected,
.item-symlink.selected,
.item-file.selected {
@@ -125,8 +129,9 @@ const doGotoSubModule = () => {
.item-symlink,
.item-submodule,
.item-directory {
- display: flex;
- align-items: center;
+ display: grid;
+ grid-template-columns: 16px 1fr;
+ grid-template-areas: "toggle content";
gap: 0.25em;
padding: 6px;
}
@@ -140,4 +145,17 @@ const doGotoSubModule = () => {
border-radius: 4px;
cursor: pointer;
}
+
+.item-toggle {
+ grid-area: toggle;
+ display: flex;
+ align-items: center;
+}
+
+.item-content {
+ grid-area: content;
+ display: flex;
+ align-items: center;
+ gap: 0.25em;
+}