Skip to content

Commit

Permalink
monaco: quick input regression fix
Browse files Browse the repository at this point in the history
This commit is the first attempt to fix the regression introduced in
 eclipse-theia#12095

Signed-Off-By: FernandoAscencio <fernando.ascencio.cama@ericsson.com>
  • Loading branch information
FernandoAscencio committed Mar 29, 2023
1 parent 964a022 commit 005c21b
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions packages/monaco/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,25 +103,6 @@
color: var(--theia-foreground) !important;
}

.quick-input-list
.quick-input-list-rows
> .quick-input-list-row
.monaco-icon-label,
.quick-input-list
.quick-input-list-rows
> .quick-input-list-row
.monaco-icon-label
.monaco-icon-label-container,
.quick-input-list
.quick-input-list-rows
> .quick-input-list-row
.monaco-icon-label
.monaco-icon-label-container
> .monaco-icon-name-container {
display: flex !important;
overflow: hidden;
}

.quick-input-list .monaco-list-row.focused {
background-color: var(--theia-quickInputList-focusBackground) !important;
}
Expand Down Expand Up @@ -165,8 +146,7 @@
}

.monaco-icon-label > .monaco-icon-label-container {
flex: 1 !important;
line-height: 22px;
flex: 1;
}

.quick-input-list-rows
Expand All @@ -177,6 +157,7 @@
font-family: var(--theia-ui-font-family);
font-size: calc(var(--theia-ui-font-size1) * 0.95) !important;
color: var(--theia-foreground) !important;
white-space: inherit;
}

.quick-input-list-rows
Expand All @@ -188,16 +169,27 @@
font-family: var(--theia-ui-font-family);
font-size: var(--theia-ui-font-size1) !important;
color: var(--theia-foreground) !important;
overflow: hidden;
text-overflow: ellipsis;
}

.quick-input-list .monaco-icon-label::before {
transform: scale(0.8);
.quick-input-list .monaco-icon-label.codicon,
.quick-input-list .monaco-icon-label.file-icon {
display: flex;
text-align: left;
}

.codicon-file.default-file-icon.file-icon {
padding-left: 2px;
height: 22px;
}

.codicon-file.default-file-icon.file-icon::before {
margin-right: 4px;
font-size: var(--theia-ui-font-size1);
}

.quick-input-list .monaco-icon-label.codicon::before {
padding-top: 3px;
position: relative;
top: 3px;
}

.quick-input-list .monaco-icon-label.theia-file-icons-js {
Expand Down

0 comments on commit 005c21b

Please sign in to comment.