Skip to content

Commit 686d568

Browse files
authored
Newline in tree item label makes label unreadable (microsoft#163345)
Fixes microsoft#163224
1 parent 3747d22 commit 686d568

File tree

1 file changed

+4
-0
lines changed
  • src/vs/workbench/browser/parts/views/media

1 file changed

+4
-0
lines changed

src/vs/workbench/browser/parts/views/media/views.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
overflow: hidden;
120120
flex-wrap: nowrap;
121121
padding-left: 3px;
122+
/* Supported everywhere: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp#browser_compatibility */
123+
-webkit-line-clamp: 1;
124+
display: -webkit-box;
125+
-webkit-box-orient: vertical;
122126
}
123127

124128
.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-checkbox {

0 commit comments

Comments
 (0)