File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,38 +67,44 @@ const AddFilterButton = observer(
6767 position = "top"
6868 className = "text-gray-400 hover:text-gray-600 transition-colors"
6969 >
70- < button onClick = { handleClick } title = "Add filter for this value" >
71- { /* Icon */ }
72- { added ? (
73- < svg
74- className = "w-3 h-3 text-green-600"
75- fill = "none"
76- stroke = "currentColor"
77- viewBox = "0 0 24 24"
78- >
79- < path
80- strokeLinecap = "round"
81- strokeLinejoin = "round"
82- strokeWidth = { 2 }
83- d = "M5 13l4 4L19 7"
84- />
85- </ svg >
86- ) : (
87- < svg
88- className = "w-3 h-3"
89- fill = "none"
90- stroke = "currentColor"
91- viewBox = "0 0 24 24"
92- >
93- < path
94- strokeLinecap = "round"
95- strokeLinejoin = "round"
96- strokeWidth = { 2 }
97- d = "M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.207A1 1 0 013 6.5V4z"
98- />
99- </ svg >
100- ) }
101- </ button >
70+ < div className = "flex items-center gap-1" >
71+ < button
72+ className = "cursor-pointer"
73+ onClick = { handleClick }
74+ title = "Add filter for this value"
75+ >
76+ { /* Icon */ }
77+ { added ? (
78+ < svg
79+ className = "w-3 h-3 text-green-600"
80+ fill = "none"
81+ stroke = "currentColor"
82+ viewBox = "0 0 24 24"
83+ >
84+ < path
85+ strokeLinecap = "round"
86+ strokeLinejoin = "round"
87+ strokeWidth = { 2 }
88+ d = "M5 13l4 4L19 7"
89+ />
90+ </ svg >
91+ ) : (
92+ < svg
93+ className = "w-3 h-3"
94+ fill = "none"
95+ stroke = "currentColor"
96+ viewBox = "0 0 24 24"
97+ >
98+ < path
99+ strokeLinecap = "round"
100+ strokeLinejoin = "round"
101+ strokeWidth = { 2 }
102+ d = "M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.207A1 1 0 013 6.5V4z"
103+ />
104+ </ svg >
105+ ) }
106+ </ button >
107+ </ div >
102108 </ Tooltip >
103109 ) ;
104110 }
You can’t perform that action at this time.
0 commit comments