Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@
variant="ghost"
size="sm"
class="h-7 w-7 p-0 text-muted-foreground hover:text-foreground"
disabled={Boolean(saving)}
>
{#if saving}
<Loader2 class="h-3.5 w-3.5 animate-spin" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@
<Button
variant="outline"
class="h-9 w-full justify-between border-border/50 bg-muted/40 text-xs text-foreground hover:bg-muted"
disabled={isAdminSaving}
>
<span class="flex items-center gap-2">
<RoleIcon class="h-3.5 w-3.5 text-muted-foreground" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@
variant="ghost"
size="sm"
class="h-7 w-7 p-0 text-muted-foreground hover:text-foreground"
disabled={Boolean(saving)}
>
{#if saving}
<Loader2 class="h-3.5 w-3.5 animate-spin" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@
>
</div>
<div class="flex items-center gap-1">
<Button aria-label="Edit IPv6 reverse DNS" variant="ghost" size="sm" class="h-7 w-7 p-0"
><Pencil class="h-3 w-3" /></Button
<Button
aria-label="Edit IPv6 reverse DNS"
variant="ghost"
size="sm"
class="h-7 w-7 p-0"
disabled><Pencil class="h-3 w-3" /></Button
><Button
aria-label="Delete IPv6 address"
variant="ghost"
Expand Down
16 changes: 16 additions & 0 deletions apps/dashboard/src/routes/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,19 @@
display: none;
}
}

/*
Set the default cursor for buttons.
*/

button,
[role='button'] {
cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
cursor: default;
}