[ Bug fixed ]: GraphQL headers url paramaters key value UI is not as expected (#5116)

* bug fixed : GraphQL headers & url paramateres key & value UI is not as expected.

* made the suggested changes
This commit is contained in:
Manish Kushare 2023-01-03 08:33:38 +05:30 committed by GitHub
parent 59d2acfb88
commit 4955689281
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ export default ({ getter, options = [['', '']], optionchanged }) => {
value={option[0]}
placeholder="key"
autoComplete="off"
className="form-control no-border"
className="form-control"
onChange={(e) => keyValuePairValueChanged(e, 0, index)}
/>
</td>
@ -50,7 +50,7 @@ export default ({ getter, options = [['', '']], optionchanged }) => {
<input
type="text"
value={option[1]}
className="form-control no-border"
className="form-control"
placeholder="value"
autoComplete="off"
onChange={(e) => keyValuePairValueChanged(e, 1, index)}
@ -69,8 +69,12 @@ export default ({ getter, options = [['', '']], optionchanged }) => {
</td>
)}
{index === 0 && (
<td>
<button className="btn btn-sm btn-primary" onClick={addNewKeyValuePair}>
<td style={{ paddingRight: 0 }}>
<button
className="btn btn-sm btn-primary"
onClick={addNewKeyValuePair}
style={{ height: '36px', width: '100%' }}
>
Add
</button>
</td>