Skip to content

Commit

Permalink
Merge pull request #1334 from DSD-DBS/remove-button-touch-target
Browse files Browse the repository at this point in the history
fix: Remove button touch target to prevent scrollbars
  • Loading branch information
MoritzWeber0 authored Feb 9, 2024
2 parents b4a9c9c + 294ad92 commit d6d256e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
mat-raised-button
(click)="showClipboardMessage()"
>
<mat-icon class="m-0">content_copy</mat-icon>
<mat-icon class="!m-0">content_copy</mat-icon>
</button>
<button
class="mt-auto self-end text-white"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
minute.
</div>
<div>
<button mat-stroked-button class="w-full" (click)="this.dialogRef.close()">
<button
mat-stroked-button
class="m-0 w-full"
(click)="this.dialogRef.close()"
>
Close
</button>
</div>
5 changes: 5 additions & 0 deletions frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ Angular Material Card Styles
background-color: black !important;
}

/* https://github.com/angular/components/issues/26176 */
.mat-mdc-button-touch-target {
display: none;
}

/*
Option cards
*/
Expand Down

0 comments on commit d6d256e

Please sign in to comment.