Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit bd4c42a

Browse files
committed
style remove button
1 parent 43e3837 commit bd4c42a

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/react-databrowser/src/components/databrowser/components/display/delete-alert-dialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export function DeleteAlertDialog({
1919
return (
2020
<AlertDialog>
2121
<AlertDialogTrigger asChild>{children}</AlertDialogTrigger>
22+
2223
<AlertDialogContent>
2324
<AlertDialogHeader>
2425
<AlertDialogTitle>Irreversible Action!</AlertDialogTitle>

packages/react-databrowser/src/components/databrowser/components/display/display-list.tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,23 @@ export const ListItems = ({
7777
onClick={() => {
7878
setSelectedListItem({ key, value })
7979
}}
80-
className="h-10 border-b border-b-zinc-100 "
80+
className="h-10 border-b border-b-zinc-100 hover:bg-zinc-50"
8181
>
8282
<td
8383
className={cn(
84-
"cursor-pointer truncate px-3 py-2 hover:bg-zinc-50",
85-
type === "list" || type === "stream" ? "w-10 text-center" : "max-w-0"
84+
"cursor-pointer truncate px-3",
85+
type === "list" || type === "stream" ? "w-24" : ""
8686
)}
8787
>
8888
{key}
8989
</td>
9090
{value !== undefined && (
91-
<td
92-
className={cn(
93-
"max-w-0 cursor-pointer truncate px-3 py-2 hover:bg-zinc-50",
94-
type === "zset" ? "w-10 text-center" : "max-w-0"
95-
)}
96-
>
91+
<td className={cn("cursor-pointer truncate px-3", type === "zset" ? "w-24" : "")}>
9792
{value}
9893
</td>
9994
)}
10095
{type !== "stream" && (
101-
<td width={20}>
96+
<td width={20} className="px-3">
10297
<DeleteAlertDialog
10398
onDeleteConfirm={(e) => {
10499
e.stopPropagation()
@@ -111,8 +106,8 @@ export const ListItems = ({
111106
})
112107
}}
113108
>
114-
<Button onClick={(e) => e.stopPropagation()}>
115-
<IconTrash size={16} />
109+
<Button size="icon-sm" variant="secondary" onClick={(e) => e.stopPropagation()}>
110+
<IconTrash className="size-4 text-zinc-500" />
116111
</Button>
117112
</DeleteAlertDialog>
118113
</td>

0 commit comments

Comments
 (0)