Skip to content

Commit fe1948f

Browse files
authored
Open folders "x unsaved" label text is displayed in multiple lines (fix microsoft#177601) (microsoft#186907)
1 parent 8940685 commit fe1948f

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/vs/workbench/contrib/files/browser/media/explorerviewlet.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,6 @@
5757
flex: 0; /* do not steal space when label is hidden because we are in edit mode */
5858
}
5959

60-
.explorer-folders-view .pane-header .count {
61-
min-width: fit-content;
62-
display: flex;
63-
align-items: center;
64-
}
65-
66-
.pane.horizontal:not(.expanded) .pane-header .dirty-count.monaco-count-badge,
67-
.pane-header .dirty-count.monaco-count-badge.hidden {
68-
display: none;
69-
}
70-
71-
.dirty-count.monaco-count-badge {
72-
padding: 2px 4px;
73-
margin-left: 6px;
74-
min-height: auto;
75-
}
76-
7760
.explorer-folders-view .explorer-item.nonexistent-root {
7861
opacity: 0.5;
7962
}

src/vs/workbench/contrib/files/browser/views/media/openeditors.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
.pane-header .open-editors-dirty-count-container {
7+
min-width: fit-content;
8+
display: flex;
9+
align-items: center;
10+
}
11+
12+
.pane.horizontal:not(.expanded) .pane-header .open-editors-dirty-count-container > .dirty-count.monaco-count-badge,
13+
.pane-header .open-editors-dirty-count-container > .dirty-count.monaco-count-badge.hidden {
14+
display: none;
15+
}
16+
17+
.pane-header .open-editors-dirty-count-container > .dirty-count.monaco-count-badge {
18+
padding: 2px 4px;
19+
margin-left: 6px;
20+
min-height: auto;
21+
}
22+
623
.open-editors .monaco-list .monaco-list-row:hover > .monaco-action-bar,
724
.open-editors .monaco-list .monaco-list-row.focused > .monaco-action-bar,
825
.open-editors .monaco-list .monaco-list-row.dirty > .monaco-action-bar,

src/vs/workbench/contrib/files/browser/views/openEditorsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class OpenEditorsView extends ViewPane {
170170
protected override renderHeaderTitle(container: HTMLElement): void {
171171
super.renderHeaderTitle(container, this.title);
172172

173-
const count = dom.append(container, $('.count'));
173+
const count = dom.append(container, $('.open-editors-dirty-count-container'));
174174
this.dirtyCountElement = dom.append(count, $('.dirty-count.monaco-count-badge.long'));
175175

176176
this.dirtyCountElement.style.backgroundColor = asCssVariable(badgeBackground);

0 commit comments

Comments
 (0)