This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
packages/react-databrowser/src/components/databrowser/components/display Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export function DeleteAlertDialog({
19
19
return (
20
20
< AlertDialog >
21
21
< AlertDialogTrigger asChild > { children } </ AlertDialogTrigger >
22
+
22
23
< AlertDialogContent >
23
24
< AlertDialogHeader >
24
25
< AlertDialogTitle > Irreversible Action!</ AlertDialogTitle >
Original file line number Diff line number Diff line change @@ -77,28 +77,23 @@ export const ListItems = ({
77
77
onClick = { ( ) => {
78
78
setSelectedListItem ( { key, value } )
79
79
} }
80
- className = "h-10 border-b border-b-zinc-100 "
80
+ className = "h-10 border-b border-b-zinc-100 hover:bg-zinc-50 "
81
81
>
82
82
< td
83
83
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 " : ""
86
86
) }
87
87
>
88
88
{ key }
89
89
</ td >
90
90
{ 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" : "" ) } >
97
92
{ value }
98
93
</ td >
99
94
) }
100
95
{ type !== "stream" && (
101
- < td width = { 20 } >
96
+ < td width = { 20 } className = "px-3" >
102
97
< DeleteAlertDialog
103
98
onDeleteConfirm = { ( e ) => {
104
99
e . stopPropagation ( )
@@ -111,8 +106,8 @@ export const ListItems = ({
111
106
} )
112
107
} }
113
108
>
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" />
116
111
</ Button >
117
112
</ DeleteAlertDialog >
118
113
</ td >
You can’t perform that action at this time.
0 commit comments