Skip to content

Commit

Permalink
style remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
ademilter committed Nov 7, 2024
1 parent 43e3837 commit bd4c42a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function DeleteAlertDialog({
return (
<AlertDialog>
<AlertDialogTrigger asChild>{children}</AlertDialogTrigger>

<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Irreversible Action!</AlertDialogTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,28 +77,23 @@ export const ListItems = ({
onClick={() => {
setSelectedListItem({ key, value })
}}
className="h-10 border-b border-b-zinc-100 "
className="h-10 border-b border-b-zinc-100 hover:bg-zinc-50"
>
<td
className={cn(
"cursor-pointer truncate px-3 py-2 hover:bg-zinc-50",
type === "list" || type === "stream" ? "w-10 text-center" : "max-w-0"
"cursor-pointer truncate px-3",
type === "list" || type === "stream" ? "w-24" : ""
)}
>
{key}
</td>
{value !== undefined && (
<td
className={cn(
"max-w-0 cursor-pointer truncate px-3 py-2 hover:bg-zinc-50",
type === "zset" ? "w-10 text-center" : "max-w-0"
)}
>
<td className={cn("cursor-pointer truncate px-3", type === "zset" ? "w-24" : "")}>
{value}
</td>
)}
{type !== "stream" && (
<td width={20}>
<td width={20} className="px-3">
<DeleteAlertDialog
onDeleteConfirm={(e) => {
e.stopPropagation()
Expand All @@ -111,8 +106,8 @@ export const ListItems = ({
})
}}
>
<Button onClick={(e) => e.stopPropagation()}>
<IconTrash size={16} />
<Button size="icon-sm" variant="secondary" onClick={(e) => e.stopPropagation()}>
<IconTrash className="size-4 text-zinc-500" />
</Button>
</DeleteAlertDialog>
</td>
Expand Down

0 comments on commit bd4c42a

Please sign in to comment.