|
39 | 39 | }
|
40 | 40 | </script>
|
41 | 41 |
|
42 |
| -<button |
43 |
| - data-testid={`privilege-view-btn-${data.cell}`} |
44 |
| - type="button" |
45 |
| - title="View" |
46 |
| - class="text-secondary-600 hover:text-primary-600" |
47 |
| - on:click|stopPropagation={() => goto(`/admin/authorization/privilege/${data.cell}`)} |
48 |
| -> |
49 |
| - <i class="fa-solid fa-circle-info fa-xl"></i> |
50 |
| - <span class="sr-only">View Privilege</span> |
51 |
| -</button> |
52 |
| -<button |
53 |
| - data-testid={`privilege-edit-btn-${data.cell}`} |
54 |
| - type="button" |
55 |
| - title="Edit" |
56 |
| - class="text-secondary-600 hover:text-primary-600" |
57 |
| - on:click|stopPropagation={() => goto(`/admin/authorization/privilege/${data.cell}/edit`)} |
58 |
| -> |
59 |
| - <i class="fa-solid fa-pen-to-square fa-xl"></i> |
60 |
| - <span class="sr-only">Edit</span> |
61 |
| -</button> |
62 |
| -<button |
63 |
| - data-testid={`privilege-delete-btn-${data.cell}`} |
64 |
| - type="button" |
65 |
| - title="Delete" |
66 |
| - class="bg-initial text-secondary-600 hover:text-primary-600" |
67 |
| - on:click|stopPropagation={deleteModal} |
68 |
| -> |
69 |
| - <i class="fa-solid fa-trash fa-xl"></i> |
70 |
| - <span class="sr-only">Delete</span> |
71 |
| -</button> |
| 42 | +<div class="w-20 min-w-20"> |
| 43 | + <button |
| 44 | + data-testid={`privilege-view-btn-${data.cell}`} |
| 45 | + type="button" |
| 46 | + title="View" |
| 47 | + class="text-black-600 hover:text-primary-600" |
| 48 | + on:click|stopPropagation={() => goto(`/admin/authorization/privilege/${data.cell}`)} |
| 49 | + > |
| 50 | + <i class="fa-solid fa-circle-info fa-xl"></i> |
| 51 | + <span class="sr-only">View Privilege</span> |
| 52 | + </button> |
| 53 | + <button |
| 54 | + data-testid={`privilege-edit-btn-${data.cell}`} |
| 55 | + type="button" |
| 56 | + title="Edit" |
| 57 | + class="text-black-600 hover:text-primary-600" |
| 58 | + on:click|stopPropagation={() => goto(`/admin/authorization/privilege/${data.cell}/edit`)} |
| 59 | + > |
| 60 | + <i class="fa-solid fa-pen-to-square fa-xl"></i> |
| 61 | + <span class="sr-only">Edit</span> |
| 62 | + </button> |
| 63 | + <button |
| 64 | + data-testid={`privilege-delete-btn-${data.cell}`} |
| 65 | + type="button" |
| 66 | + title="Delete" |
| 67 | + class="text-black-600 hover:text-primary-600" |
| 68 | + on:click|stopPropagation={deleteModal} |
| 69 | + > |
| 70 | + <i class="fa-solid fa-trash fa-xl"></i> |
| 71 | + <span class="sr-only">Delete</span> |
| 72 | + </button> |
| 73 | +</div> |
0 commit comments