@@ -71,7 +71,7 @@ const RequestNode = ({ id, data }) => {
7171 width = '14'
7272 height = '14'
7373 fill = 'currentColor'
74- className = 'inline-block ml-2 cursor-pointer'
74+ className = 'ml-2 inline-block cursor-pointer'
7575 viewBox = '0 0 16 16'
7676 style = { { marginTop : 1 } }
7777 >
@@ -87,32 +87,32 @@ const RequestNode = ({ id, data }) => {
8787 return (
8888 < div >
8989 { variables && Object . keys ( variables ) . length > 0 ? (
90- < table className = 'leading-normal' >
90+ < table className = 'border-collapse border-2 border-background-dark leading-normal' >
9191 < thead >
92- < tr className = 'text-xs font-bold tracking-wider text-left bg-ghost-50 text-ghost-600 ' >
93- < th className = 'w-2/6 p-1 border border-ghost-200 ' > Name</ th >
94- < th className = 'w-4/6 p-1 border border-ghost-200 ' > Value</ th >
95- < th className = 'w-1/6 p-1 border border-ghost-200 ' > </ th >
92+ < tr className = 'bg-ghost-50 text-ghost-600 text-left text-xs font-bold tracking-wider ' >
93+ < th className = 'border-2 border-background-dark p-2 ' > Name</ th >
94+ < th className = 'border-2 border-background-dark p-2 ' > Value</ th >
95+ < th className = 'border-2 border-background-dark p-2 ' > </ th >
9696 </ tr >
9797 </ thead >
9898 < tbody >
9999 { Object . keys ( variables ) . map ( ( id , index ) => (
100- < tr key = { index } className = 'text-sm border-b border-gray-200 text-ghost-700 hover:bg-ghost-50 ' >
101- < td className = 'p-1 whitespace-no-wrap' >
100+ < tr key = { index } className = 'text-ghost-700 hover:bg-ghost-50 border-b border-gray-200 text-sm ' >
101+ < td className = 'whitespace-no-wrap border-2 border-background-dark ' >
102102 < input
103103 type = 'text'
104- className = 'nodrag nowheel block h-9 w-full p-2.5'
104+ className = 'nodrag nowheel block h-9 w-full bg-transparent p-2.5 outline-none '
105105 name = 'variable-name'
106106 value = { id }
107107 readOnly
108108 />
109109 </ td >
110- < td className = 'p-1 whitespace-no-wrap' >
110+ < td className = 'whitespace-no-wrap border-2 border-background-dark ' >
111111 { variables [ id ] . type === 'Boolean' ? (
112112 < select
113113 onChange = { ( e ) => handleVariableChange ( e , vType , id ) }
114114 name = 'boolean-val'
115- className = ' nodrag nowheel h-9 w-full p-2.5 px-1'
115+ className = ' nodrag nowheel h-9 w-full bg-background-light p-2.5 px-1 outline-none '
116116 value = { variables [ id ] . value }
117117 >
118118 < option value = 'true' > True</ option >
@@ -121,26 +121,28 @@ const RequestNode = ({ id, data }) => {
121121 ) : variables [ id ] . type === 'Now' ? (
122122 < input
123123 type = 'text'
124- className = 'nodrag nowheel block h-9 w-full p-2.5'
124+ className = 'nodrag nowheel block h-9 w-full bg-background-light p-2.5 outline-none '
125125 name = 'variable-name'
126126 value = 'Date.now()'
127127 readOnly
128128 />
129129 ) : (
130130 < input
131131 type = { getInputType ( variables [ id ] . type ) }
132- className = 'nodrag nowheel block h-9 w-full p-2.5'
132+ className = 'nodrag nowheel block h-9 w-full bg-background-light p-2.5 outline-none '
133133 name = 'variable-value'
134134 data-type = { getInputType ( variables [ id ] . type ) }
135135 onChange = { ( e ) => handleVariableChange ( e , vType , id ) }
136136 value = { variables [ id ] . value }
137137 />
138138 ) }
139139 </ td >
140- < td className = 'flex p-1 whitespace-no-wrap' >
141- < Tooltip text = { variables [ id ] . type } />
142- < div onClick = { ( e ) => handleDeleteVariable ( e , vType , id ) } className = 'pl-2 text-neutral-500' >
143- < TrashIcon className = 'w-4 h-4' />
140+ < td className = 'border-2 border-background-dark p-2' >
141+ < div className = 'flex items-center gap-4' >
142+ < Tooltip text = { variables [ id ] . type } />
143+ < div onClick = { ( e ) => handleDeleteVariable ( e , vType , id ) } className = 'cursor-pointer' >
144+ < TrashIcon className = 'h-4 w-4' />
145+ </ div >
144146 </ div >
145147 </ td >
146148 </ tr >
@@ -178,14 +180,14 @@ const RequestNode = ({ id, data }) => {
178180 className = 'text-xl'
179181 >
180182 < div >
181- < Listbox . Button className = 'relative flex text-left cursor-default border-cyan-950' >
183+ < Listbox . Button className = 'relative flex cursor-default border-cyan-950 text-left ' >
182184 < span className = 'block truncate' > { data . requestType } </ span >
183185 < span className = 'p-1' >
184- < ChevronUpDownIcon className = 'w -5 h -5' aria-hidden = 'true' />
186+ < ChevronUpDownIcon className = 'h -5 w -5' aria-hidden = 'true' />
185187 </ span >
186188 </ Listbox . Button >
187189 < Transition as = { Fragment } leave = 'transition ease-in duration-100' leaveFrom = 'opacity-100' leaveTo = 'opacity-0' >
188- < Listbox . Options className = 'absolute z-50 py -1 mt-1 overflow-auto text-base bg-white max-h-60 w-36 focus:outline-none' >
190+ < Listbox . Options className = 'absolute z-50 mt -1 max-h-60 w-36 overflow-auto bg-white py-1 text-base focus:outline-none' >
189191 { requestNodes
190192 . map ( ( el ) => el . requestType )
191193 . map ( ( reqType ) => (
@@ -203,7 +205,7 @@ const RequestNode = ({ id, data }) => {
203205 < span className = { `block` } > { reqType } </ span >
204206 { selected ? (
205207 < span className = 'absolute inset-y-0 left-0 flex items-center pl-1 font-semibold' >
206- < CheckIcon className = 'w -5 h -5' aria-hidden = 'true' />
208+ < CheckIcon className = 'h -5 w -5' aria-hidden = 'true' />
207209 </ span >
208210 ) : null }
209211 </ >
@@ -239,9 +241,9 @@ const RequestNode = ({ id, data }) => {
239241 < NodeHorizontalDivider />
240242 < div className = 'bg-background' >
241243 < h3 className = 'p-2' > Variables</ h3 >
242- < div >
244+ < div className = 'px-2' >
243245 < NodeHorizontalDivider />
244- < div >
246+ < div className = 'pb-2' >
245247 < div className = 'flex items-center justify-between' >
246248 < div className = 'p-2' > Pre Request</ div >
247249 < button
@@ -250,13 +252,13 @@ const RequestNode = ({ id, data }) => {
250252 setVariableDialogOpen ( true ) ;
251253 } }
252254 >
253- < PlusIcon className = 'w -4 h -4' />
255+ < PlusIcon className = 'h -4 w -4' />
254256 </ button >
255257 </ div >
256258 { renderVariables ( 'pre-request' ) }
257259 </ div >
258260 < NodeHorizontalDivider />
259- < div >
261+ < div className = 'pb-2' >
260262 < div className = 'flex items-center justify-between' >
261263 < div className = 'p-2' > Post Response</ div >
262264 < button
@@ -265,7 +267,7 @@ const RequestNode = ({ id, data }) => {
265267 setVariableDialogOpen ( true ) ;
266268 } }
267269 >
268- < PlusIcon className = 'w -4 h -4' />
270+ < PlusIcon className = 'h -4 w -4' />
269271 </ button >
270272 </ div >
271273 { renderVariables ( 'post-response' ) }
0 commit comments