I am currently working on a betting application using Angular 12. I am facing an issue with the spacing in cells, as there is excessive cell padding that is causing wastage of space.
<table class="w-100 text-white">
<tbody>
<tr *ngFor="let match of data; let index=index" app-match-row [match]="match"
[ngClass]="{'even':index%2==0,'odd':index%2!=0}"></tr>
</tbody>
Here is the code for app-match-row:
<td cellpadding="0" class="align-middle different-text text-center">{{match.broj}}</td>
<td cellpadding="0" class="align-middle text-center"><img class="w-25" [src]="getSportIcon()"></td>
<td cellpadding="0" class="align-middle different-text text-center">{{getThirdColumnData()}}</td>
<td cellpadding="0" class="align-middle" [ngSwitch]="match.sh_sport.sh_sport_id">
<app-info-football *ngSwitchCase="1" [match]="match"></app-info-football>
<app-info-hockey *ngSwitchCase="2" [match]="match"></app-info-hockey>
<app-info-basketball *ngSwitchCase="3" [match]="match"></app-info-basketball>
<app-info-tennis *ngSwitchCase="4" [match]="match"></app-info-tennis>
<app-info-handball *ngSwitchCase="5" [match]="match"></app-info-handball>
<app-info-volleyball *ngSwitchCase="7" [match]="match"></app-info-volleyball>
</td>
<td cellpadding="0" [ngSwitch]="match.sh_sport.sh_sport_id">
<app-first-column-football *ngSwitchCase="1" [match]="match"></app-first-column-football>
<app-first-column-hockey *ngSwitchCase="2" [match]="match"></app-first-column-hockey>
<app-first-column-basketball *ngSwitchCase="3" [match]="match"></app-first-column-basketball>
<app-first-column-tennis *ngSwitchCase="4" [match]="match"></app-first-column-tennis>
<app-first-column-handball *ngSwitchCase="5" [match]="match"></app-first-column-handball>
</td>
<!-- Additional code snippets here -->
You can view the visual representation of the problem by clicking here.
The red lines indicate the excess space that needs to be eliminated.