Skip to content

Commit 4f1862e

Browse files
committed
minor #2067 [Site] Update file tree icons (fbnlsr)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Update file tree icons | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | None | License | MIT This is a quick proposal at updating the file tree present on the home page, replacing folder icons for file icons when appropriate. **Before:** ![image](https://github.com/user-attachments/assets/8824d125-bb22-4d38-94bd-df9fef913c7e) **After:** ![image](https://github.com/user-attachments/assets/376f9239-9a6e-4a69-9b58-5787061e11ec) Commits ------- 76baf6f [Site] Update file tree icons
2 parents 2e6a24c + 76baf6f commit 4f1862e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ux.symfony.com/assets/icons/file.svg

+3
Loading

ux.symfony.com/assets/styles/components/_FileTree.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
.FileTree li > span {
99
display: flex;
1010
flex-direction: row;
11-
gap: 1rem;
11+
align-items: center;
12+
gap: .75rem;
1213
}
1314

1415
.FileTree-main::before {
@@ -44,4 +45,3 @@
4445
left: 0;
4546
z-index: -1;
4647
}
47-

ux.symfony.com/templates/main/_file_tree.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% else %}
2222
<li class="FileTree-main FileTree-file">
2323
<span {{- _self.summaryAttributes(file_info.description) -}}>
24-
<twig:Icon name="folder" class="d-inline-block m-0 mr-2" />
24+
<twig:Icon name="file" class="d-inline-block m-0 mr-2" />
2525
{{ file_info.filename }}
2626
</span>
2727
</li>

0 commit comments

Comments
 (0)