Skip to content

Commit

Permalink
Improve Issue Reporter UI
Browse files Browse the repository at this point in the history
* improve scrollbar margin
* add cursor property
* no wrapping of label text
  • Loading branch information
EbXpJ6bp authored and Rachel Macfarlane committed Feb 15, 2018
1 parent 861c6bf commit 0ace6ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/vs/code/electron-browser/issue/issueReporterMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ export class IssueReporter extends Disposable {
}

if (styles.sliderBackgroundColor) {
content.push(`.issues-container::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background-color: ${styles.sliderBackgroundColor}; }`);
content.push(`::-webkit-scrollbar-thumb { background-color: ${styles.sliderBackgroundColor}; }`);
}

if (styles.sliderActiveColor) {
content.push(`.issues-container::-webkit-scrollbar-thumb:active, body::-webkit-scrollbar-thumb:active { background-color: ${styles.sliderActiveColor}; }`);
content.push(`::-webkit-scrollbar-thumb:active { background-color: ${styles.sliderActiveColor}; }`);
}

if (styles.sliderHoverColor) {
content.push(`.issues-container::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background-color: ${styles.sliderHoverColor}; }`);
content.push(`::--webkit-scrollbar-thumb:hover { background-color: ${styles.sliderHoverColor}; }`);
}

styleTag.innerHTML = content.join('\n');
Expand Down
22 changes: 13 additions & 9 deletions src/vs/code/electron-browser/issue/media/issueReporter.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ html {

body {
margin: 0;
overflow: scroll;
}

.hidden {
Expand Down Expand Up @@ -223,16 +224,11 @@ summary {

.include-data {
display: inline-block;
position: relative;
}

.include-data > .caption {
display: inline-block;
font-size: 12px;
position: absolute;
width: 80px;
top: 2px;
left: 30px;
cursor: pointer;
}

Expand Down Expand Up @@ -263,9 +259,12 @@ input:disabled {
margin-top: .5em;
}

.workbenchCommand {
cursor: pointer;
}
.workbenchCommand:disabled {
color: #868e96;
cursor: pointer;
cursor: default
}

.block-extensions .block-info {
Expand Down Expand Up @@ -303,6 +302,7 @@ button {

#issue-type {
width: calc(100% - 100px);
cursor: pointer;
}

#issue-title-label {
Expand Down Expand Up @@ -348,14 +348,18 @@ button {
}
}

.issues-container::-webkit-scrollbar, body::-webkit-scrollbar {
::-webkit-scrollbar {
width: 14px;
}

.issues-container::-webkit-scrollbar, body::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
min-height: 20px;
}

::-webkit-scrollbar-corner {
display: none;
}

.issues-container {
margin-top: .5em;
height: 108px;
Expand Down Expand Up @@ -397,4 +401,4 @@ div.issues-container {

.issues-container > .issue > .issue-state .octicon {
padding-right: 5px;
}
}

0 comments on commit 0ace6ef

Please sign in to comment.