Skip to content

Commit 64b7b6d

Browse files
authored
issue reporter style fixes (microsoft#223579)
fix some styling issues also bug
1 parent 3cae7b1 commit 64b7b6d

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/vs/workbench/contrib/issue/browser/issue.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export class BaseIssueReporterService extends Disposable {
163163

164164
if (styles.backgroundColor) {
165165
content.push(`.monaco-workbench { background-color: ${styles.backgroundColor} !important; }`);
166+
content.push(`.issue-reporter-body::-webkit-scrollbar-track { background-color: ${styles.backgroundColor}; }`);
166167
}
167168

168169
if (styles.inputBorder) {
@@ -204,16 +205,13 @@ export class BaseIssueReporterService extends Disposable {
204205
content.push(`a:hover, .workbenchCommand:hover { color: ${styles.textLinkActiveForeground}; }`);
205206
}
206207

207-
if (styles.sliderBackgroundColor) {
208-
content.push(`::-webkit-scrollbar-thumb { background-color: ${styles.sliderBackgroundColor}; }`);
209-
}
210-
211208
if (styles.sliderActiveColor) {
212-
content.push(`::-webkit-scrollbar-thumb:active { background-color: ${styles.sliderActiveColor}; }`);
209+
content.push(`.issue-reporter-body::-webkit-scrollbar-thumb:active { background-color: ${styles.sliderActiveColor}; }`);
213210
}
214211

215212
if (styles.sliderHoverColor) {
216-
content.push(`::--webkit-scrollbar-thumb:hover { background-color: ${styles.sliderHoverColor}; }`);
213+
content.push(`.issue-reporter-body::-webkit-scrollbar-thumb { background-color: ${styles.sliderHoverColor}; }`);
214+
content.push(`.issue-reporter-body::--webkit-scrollbar-thumb:hover { background-color: ${styles.sliderHoverColor}; }`);
217215
}
218216

219217
if (styles.buttonBackground) {
@@ -419,6 +417,10 @@ export class BaseIssueReporterService extends Disposable {
419417
if (issueType === IssueType.PerformanceIssue && this.receivedSystemInfo && this.receivedPerformanceInfo) {
420418
return true;
421419
}
420+
421+
if (issueType === IssueType.FeatureRequest) {
422+
return true;
423+
}
422424
}
423425

424426
return false;

src/vs/workbench/contrib/issue/electron-sandbox/issueFormService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class IssueFormService2 implements IIssueFormService {
9696

9797
// Store into config object URL
9898
this.configuration = {
99+
zoomLevel: data.zoomLevel,
99100
appRoot: this.environmentService.appRoot,
100101
windowId: 0,
101102
userEnv: {},

src/vs/workbench/contrib/issue/electron-sandbox/media/newIssueReporter.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ body.issue-reporter-body {
359359
cursor: pointer;
360360
appearance: auto;
361361
border: none;
362+
border-right: 6px solid transparent;
363+
padding-left: 10px;
362364
}
363365

364366
.issue-reporter-body #similar-issues {

0 commit comments

Comments
 (0)