From f3fa6a3d0bbb09ac2615fb13630ee0109f054119 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 27 Jun 2023 12:14:39 -0400 Subject: [PATCH 1/4] fix(style-rendered): content looks better now --- src/webviewPanel.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/webviewPanel.js b/src/webviewPanel.js index 7921c0f..db9c94a 100644 --- a/src/webviewPanel.js +++ b/src/webviewPanel.js @@ -162,7 +162,7 @@ function getWebviewContent(apiResponse = '', question = '') { color: #d4d4d4; cursor: pointer; padding: 10px; - width: 100%; + width: 95%; border: none; outline: none; text-align: left; @@ -186,12 +186,12 @@ function getWebviewContent(apiResponse = '', question = '') { display: none; overflow: hidden; background-color: #f1f1f1; - width: 100%; + width: 95%; } .content p { - margin-top: 0; font-size: 14px; + margin: 0; } .active, @@ -230,6 +230,7 @@ function getWebviewContent(apiResponse = '', question = '') { border: 1px solid white; border-radius: 5px; padding: 10px; + color: white; } #question-rep { @@ -238,6 +239,7 @@ function getWebviewContent(apiResponse = '', question = '') { word-wrap: wrap; border: 1px solid white; border-radius: 5px; + padding: 10px; } div#api-response.content.active { @@ -254,7 +256,7 @@ function getWebviewContent(apiResponse = '', question = '') { color: inherit; cursor: pointer; outline: inherit; - width: 100%; + width: 98%; text-align: left; display: inline-block; position: relative; From d8eb37e674203a3673efee46a555d0a5cd357701 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 27 Jun 2023 12:15:27 -0400 Subject: [PATCH 2/4] Removed unnecessary import --- src/gptContext.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gptContext.js b/src/gptContext.js index fcc02db..e89a76c 100644 --- a/src/gptContext.js +++ b/src/gptContext.js @@ -1,7 +1,6 @@ const vscode = require('vscode'); const { Configuration, OpenAIApi } = require("openai"); const FileDataProvider = require('./fileDataProvider'); -const FileItem = require('./fileItem'); const { getWebviewContent } = require('./webviewPanel'); From 384ac4fc80ebf155f7a7d0da431abc522d008c06 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 27 Jun 2023 12:24:26 -0400 Subject: [PATCH 3/4] fix(style-rendered): 98% scales better --- src/webviewPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webviewPanel.js b/src/webviewPanel.js index db9c94a..c941e34 100644 --- a/src/webviewPanel.js +++ b/src/webviewPanel.js @@ -162,7 +162,7 @@ function getWebviewContent(apiResponse = '', question = '') { color: #d4d4d4; cursor: pointer; padding: 10px; - width: 95%; + width: 98%; border: none; outline: none; text-align: left; @@ -186,7 +186,7 @@ function getWebviewContent(apiResponse = '', question = '') { display: none; overflow: hidden; background-color: #f1f1f1; - width: 95%; + width: 98%; } .content p { From 3dffeccaa94f3cdf22442a9a098a44fd343a5d82 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 27 Jun 2023 12:26:26 -0400 Subject: [PATCH 4/4] fix(style-rendered): question now has extra margin --- src/webviewPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webviewPanel.js b/src/webviewPanel.js index c941e34..7f872e5 100644 --- a/src/webviewPanel.js +++ b/src/webviewPanel.js @@ -240,6 +240,7 @@ function getWebviewContent(apiResponse = '', question = '') { border: 1px solid white; border-radius: 5px; padding: 10px; + margin-top: 20px; } div#api-response.content.active {