Skip to content

Commit 2dae76b

Browse files
authored
codewhisperer: update code diff styles (#1407)
* codewhisperer: update code diff styles * add change log
1 parent 1ed26f0 commit 2dae76b

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "CodeWhisperer: Uses Generative AI and automated reasoning to rewrite lines of code flagged for security vulnerabilities during a security scan."
4+
}

resources/css/securityIssue.css

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ body.wordWrap pre {
179179

180180
pre:not(.hljs),
181181
pre.hljs code > div {
182-
padding: 16px;
182+
padding: 0 16px 16px 16px;
183183
border-radius: 3px;
184184
overflow: auto;
185185
}
@@ -200,7 +200,7 @@ pre {
200200
color: var(--vscode-diffEditorOverview-insertedForeground, rgb(155, 185, 85));
201201
display: inline-block;
202202
width: 100%;
203-
margin: -16px;
203+
margin: 0 -16px;
204204
padding: 0 16px;
205205
}
206206

@@ -209,19 +209,17 @@ pre {
209209
color: var(--vscode-diffEditorOverview-removedForeground, rgb(255, 0, 0));
210210
display: inline-block;
211211
width: 100%;
212-
margin: -16px;
212+
margin: 0 -16px;
213213
padding: 0 16px;
214214
}
215215

216216
.hljs-meta {
217217
background-color: var(--vscode-editorMarkerNavigationInfo-headerBackground);
218218
color: var(--vscode-editorOverviewRuler-selectionHighlightForeground);
219219
display: inline-block;
220-
position: relative;
221220
width: 100%;
222-
margin: -16px;
223-
padding: 10px 16px 8px 16px;
224-
top: -8px;
221+
margin: 0 -16px;
222+
padding: 8px 16px;
225223
}
226224

227225
input[type='submit'] {

0 commit comments

Comments
 (0)