Skip to content

Commit 3602a19

Browse files
lng2020silverwind
andauthored
Add border to file tree 'sub-items' and add padding to 'item-file' (#27593)
## Add border to file tree 'sub-items' close #24766 view in `gitea-light` <img width="275" alt="image" src="https://github.com/go-gitea/gitea/assets/70063547/f1bf8736-2db3-454f-86f5-d050a2fae3eb"> view in `gitea-dark` <img width="296" alt="image" src="https://github.com/go-gitea/gitea/assets/70063547/053e2e6e-28f7-41d2-a139-1dae4df45929"> ## Change the 'item-file' padding Before that the 'item-file' only have padding when they in 'item-directory', which is too compact when 'item-file' after 'item-directory' <details> ![)RW`SDJ_UQL@$}0 PL(3DS7](https://github.com/go-gitea/gitea/assets/70063547/5fa523a4-44c3-4cb9-a882-a3ea6d944673) --------- Co-authored-by: silverwind <[email protected]>
1 parent e544a27 commit 3602a19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web_src/js/components/DiffFileTreeItem.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ a, a:hover {
6161
display: flex;
6262
flex-direction: column;
6363
gap: 1px;
64-
padding-left: 8px;
64+
margin-left: 13px;
65+
border-left: 1px solid var(--color-secondary);
6566
}
6667
6768
.sub-items .item-file {
68-
padding-left: 24px;
69+
padding-left: 18px;
6970
}
7071
7172
.item-file.selected {

0 commit comments

Comments
 (0)