Skip to content

Commit 60d89eb

Browse files
committed
fix(ui): Display text label for project type
The project type text (e.g., "Resource Pack") was not appearing next to its icon due to an incorrect `@switch` structure. This has been corrected by combining the icon and text into a single `@case` block.
1 parent 995f49a commit 60d89eb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/app/components/mod-card/project-type-label/project-type-label.component.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
d="m7.875 14.25 1.214 1.942a2.25 2.25 0 0 0 1.908 1.058h2.006c.776 0 1.497-.4 1.908-1.058l1.214-1.942M2.41 9h4.636a2.25 2.25 0 0 1 1.872 1.002l.164.246a2.25 2.25 0 0 0 1.872 1.002h2.092a2.25 2.25 0 0 0 1.872-1.002l.164-.246A2.25 2.25 0 0 1 16.954 9h4.636M2.41 9a2.25 2.25 0 0 0-.16.832V12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 12V9.832c0-.287-.055-.57-.16-.832M2.41 9a2.25 2.25 0 0 1 .382-.632l3.285-3.832a2.25 2.25 0 0 1 1.708-.786h8.43c.657 0 1.281.287 1.709.786l3.284 3.832c.163.19.291.404.382.632M4.5 20.25h15A2.25 2.25 0 0 0 21.75 18v-2.625c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125V18a2.25 2.25 0 0 0 2.25 2.25Z"
2121
/>
2222
</svg>
23+
<span>Modpack</span>
2324
}
2425
@case (ProjectType.ResourcePack) {
2526
<svg
@@ -57,6 +58,7 @@
5758
stroke-linejoin="round"
5859
></path>
5960
</svg>
61+
<span>Resource Pack</span>
6062
}
6163
@case (ProjectType.Shader) {
6264
<svg
@@ -124,14 +126,6 @@
124126
stroke-linejoin="round"
125127
></path>
126128
</svg>
127-
}
128-
@case (ProjectType.ModPack) {
129-
<span>Modpack</span>
130-
}
131-
@case (ProjectType.ResourcePack) {
132-
<span>Resource Pack</span>
133-
}
134-
@case (ProjectType.Shader) {
135129
<span>Shader</span>
136130
}
137131
}

0 commit comments

Comments
 (0)