Skip to content

Commit

Permalink
feat: use only 6 dots icon as a drag handle for table menu
Browse files Browse the repository at this point in the history
Using not the entire menu entry fixes scrolling with fingers on mobile devices, when you have a small screen and many menu items.
  • Loading branch information
ruempel authored Feb 20, 2024
1 parent d64398b commit 9aba71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ng-template #templateRef>
<div cdkDropList class="column-list" (cdkDropListDropped)="drop($event)">
<div class="column-item" *ngFor="let column of _tableData.columns" cdkDrag>
<mat-icon>drag_indicator</mat-icon>
<mat-icon cdkDragHandle>drag_indicator</mat-icon>
<mat-checkbox [(ngModel)]="column.isActive" (change)="toggle()">{{column.name}}</mat-checkbox>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
}
}

.column-item:hover {
cursor: move;
.column-item > mat-icon:hover {
cursor: grab;
border-top: solid 1px rgba(0, 0, 0, .12);
border-bottom: solid 1px rgba(0, 0, 0, .12);
}
Expand Down

0 comments on commit 9aba71e

Please sign in to comment.