|
99 | 99 | overflow: hidden; |
100 | 100 | text-overflow: ellipsis; |
101 | 101 | white-space: pre; |
| 102 | + justify-content: space-between; |
| 103 | +} |
| 104 | + |
| 105 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left, |
| 106 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { |
| 107 | + display: flex; |
102 | 108 | } |
103 | 109 |
|
104 | 110 | .monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight { |
105 | 111 | font-weight: bold; |
106 | 112 | } |
107 | 113 |
|
108 | | -/** Icon styles **/ |
| 114 | +/** ReadMore Icon styles **/ |
109 | 115 |
|
110 | 116 | .monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close, |
111 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore::before { |
| 117 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before { |
112 | 118 | color: inherit; |
113 | | - opacity: 0.6; |
| 119 | + opacity: 1; |
114 | 120 | font-size: 14px; |
115 | | - margin-left: 4px; |
116 | 121 | cursor: pointer; |
117 | 122 | } |
118 | 123 |
|
|
123 | 128 | } |
124 | 129 |
|
125 | 130 | .monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover, |
126 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore:hover { |
| 131 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover { |
127 | 132 | opacity: 1; |
128 | 133 | } |
129 | 134 |
|
130 | 135 | /** Type Info and icon next to the label in the focused completion item **/ |
131 | 136 |
|
132 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .type-label { |
| 137 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label { |
133 | 138 | margin-left: 0.8em; |
134 | | - flex: 1; |
135 | | - text-align: right; |
136 | 139 | overflow: hidden; |
137 | 140 | text-overflow: ellipsis; |
138 | 141 | opacity: 0.7; |
139 | 142 | white-space: nowrap; |
140 | 143 | } |
141 | 144 |
|
142 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .type-label > .monaco-tokenized-source { |
| 145 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source { |
143 | 146 | display: inline; |
144 | 147 | } |
145 | 148 |
|
146 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore, |
147 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .type-label, |
148 | | -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .readMore, |
149 | | -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .type-label, |
150 | | -.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row.focused > .contents > .main > .readMore { |
| 149 | +/** Details: if using CompletionItem#details, show on focus **/ |
| 150 | + |
| 151 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label, |
| 152 | +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { |
151 | 153 | display: none; |
152 | 154 | } |
153 | 155 |
|
154 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .readMore, |
155 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .type-label { |
| 156 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { |
| 157 | + display: inline; |
| 158 | +} |
| 159 | + |
| 160 | +/** Details: if using CompletionItemLabel#details, always show **/ |
| 161 | + |
| 162 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right.always-show-details > .details-label, |
| 163 | +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right.always-show-details > .details-label { |
156 | 164 | display: inline; |
157 | 165 | } |
158 | 166 |
|
| 167 | +/** Ellipsis on hover **/ |
| 168 | +.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { |
| 169 | + width: calc(100% - 26px); |
| 170 | +} |
| 171 | + |
| 172 | +/** ReadMore: show on hover **/ |
| 173 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { |
| 174 | + overflow: hidden; |
| 175 | +} |
| 176 | + |
| 177 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { |
| 178 | + display: inline-block; |
| 179 | + position: absolute; |
| 180 | + right: 10px; |
| 181 | + width: 18px; |
| 182 | + height: 18px; |
| 183 | + visibility: hidden; |
| 184 | +} |
| 185 | + |
| 186 | +/** Do NOT display ReadMore when docs is side/below **/ |
| 187 | +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, |
| 188 | +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { |
| 189 | + display: none !important; |
| 190 | +} |
| 191 | + |
| 192 | +/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/ |
| 193 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right:not(.always-show-details) > .readMore { |
| 194 | + display: none; |
| 195 | +} |
| 196 | +/** Focused item can show ReadMore, but can't when docs is side/below **/ |
| 197 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right:not(.always-show-details) > .readMore { |
| 198 | + display: inline-block; |
| 199 | +} |
| 200 | + |
| 201 | +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, |
| 202 | +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { |
| 203 | + display: none; |
| 204 | +} |
| 205 | + |
| 206 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore { |
| 207 | + visibility: visible; |
| 208 | +} |
| 209 | + |
159 | 210 | /** Styles for each row in the list **/ |
160 | 211 |
|
161 | 212 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated { |
|
0 commit comments