Skip to content

Commit 502d120

Browse files
authored
Merge pull request #38 from REST-API-Client/fix/responseHeader
[2022/07/20] - Fix response headers menu style
2 parents 1fe60c2 + e8e2f76 commit 502d120

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.3
4+
5+
#### Fix response header menu not displaying the whole header information
6+
37
## 1.0.2
48

59
#### README.md update

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Simply click Open Menu button or open the Command Palette and type the command b
138138

139139
## 🗒 Changelog
140140

141-
#### Current version 1.0.0
141+
#### Current version 1.0.3
142142

143143
Visit [here](https://github.com/REST-API-Client/API-Client-VSCode-Extension/blob/main/CHANGELOG.md) for a detailed release notes
144144

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "REST API Client",
55
"icon": "icons/images/icon.png",
66
"description": "Simple and intuitive API Client made into a VSCode extension.",
7-
"version": "1.0.2",
7+
"version": "1.0.3",
88
"license": "MIT",
99
"bugs": {
1010
"url": "https://github.com/REST-API-Client/API-Client-VSCode-Extension/issues"

webview/features/Response/Menu/ResponseMenuOption.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import styled from "styled-components";
23
import shallow from "zustand/shallow";
34

45
import { COMMON, HEIGHT, OPTION, REQUEST } from "../../../constants";
@@ -27,7 +28,11 @@ const ResponseMenuOption = () => {
2728

2829
switch (responseOption) {
2930
case COMMON.HEADERS:
30-
return <KeyValueTable keyValueTableData={responseHeaders} readOnly />;
31+
return (
32+
<ResponseHeaderWrapper>
33+
<KeyValueTable keyValueTableData={responseHeaders} readOnly />
34+
</ResponseHeaderWrapper>
35+
);
3136
default:
3237
return (
3338
<>
@@ -49,4 +54,9 @@ const ResponseMenuOption = () => {
4954
}
5055
};
5156

57+
const ResponseHeaderWrapper = styled.div`
58+
height: 60vh;
59+
overflow-y: scroll;
60+
`;
61+
5262
export default ResponseMenuOption;

0 commit comments

Comments
 (0)