Skip to content

Commit

Permalink
refactor: change checkbox to mat-slide-toggle
Browse files Browse the repository at this point in the history
Reviewed-by: andriacap
  • Loading branch information
andriacap committed Aug 19, 2024
1 parent 0a39a45 commit 5614855
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@
>
<!-- Toggle for "Mes discussions" -->
<div class="toggle-container">
<label>
<input
type="checkbox"
[(ngModel)]="myReportsOnly"
(change)="toggleMyReports()"
/>
Mes discussions
</label>
<mat-slide-toggle
labelPosition="after"
[(ngModel)]="myReportsOnly"
(change)="toggleMyReports()"
>
Mes discussions uniquement
</mat-slide-toggle>
</div>
<ngx-datatable
#table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ ngx-datatable-column {
overflow: hidden; /* Empêche le débordement du texte */
text-overflow: ellipsis; /* Affiche des points de suspension si le texte dépasse */
}

.toggle-container mat-slide-toggle {
padding: 4px;
}

0 comments on commit 5614855

Please sign in to comment.