Skip to content

Commit f73d83f

Browse files
committed
adding changes from review
1 parent 0e34605 commit f73d83f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/vs/editor/contrib/colorPicker/browser/colorPicker.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@
4848
cursor: pointer;
4949
color: white;
5050
flex: 1;
51+
white-space: nowrap;
52+
overflow: hidden;
5153
}
5254

5355
.colorpicker-header .picked-color .picked-color-presentation {
5456
white-space: nowrap;
55-
margin-left: 30px;
57+
margin-left: 5px;
5658
margin-right: 5px;
5759
}
5860

5961
.colorpicker-header .picked-color .codicon {
6062
color: inherit;
6163
font-size: 14px;
62-
position: absolute;
63-
left: 8px;
6464
}
6565

6666
.colorpicker-header .picked-color.light {

src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export class ColorPickerHeader extends Disposable {
3838
dom.append(container, this._domNode);
3939

4040
this._pickedColorNode = dom.append(this._domNode, $('.picked-color'));
41-
this._pickedColorPresentation = dom.append(this._pickedColorNode, document.createElement('div'));
41+
dom.append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
42+
this._pickedColorPresentation = dom.append(this._pickedColorNode, document.createElement('span'));
4243
this._pickedColorPresentation.classList.add('picked-color-presentation');
43-
dom.append(this._pickedColorNode, $('.codicon.codicon-color-mode'));
4444

4545
const tooltip = localize('clickToToggleColorOptions', "Click to toggle color options (rgb/hsl/hex)");
4646
this._pickedColorNode.setAttribute('title', tooltip);

0 commit comments

Comments
 (0)