bugfix btn show no img if none was passed

This commit is contained in:
Chneemann 2024-08-16 09:13:26 +02:00
parent 9b5bbd3988
commit 690e991309
2 changed files with 4 additions and 2 deletions

View file

@ -37,8 +37,8 @@
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumWarning": "8kb",
"maximumError": "16kb"
}
],
"outputHashing": "all"

View file

@ -4,10 +4,12 @@
[disabled]="disabled"
[ngClass]="{ reverse: imgReverse }"
>
@if(imgPath) {
<img
src="./../../../../assets/img/{{ imgPath }}.svg"
alt="{{ imgPath }}"
class="icon"
/>
}
<p>{{ value }}</p>
</button>