Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
95f39245
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
95f39245
编写于
5月 17, 2017
作者:
R
Ramya Achutha Rao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move close icon to fix case when there is docs but no details
上级
6ec7c698
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
19 deletion
+11
-19
src/vs/editor/contrib/suggest/browser/media/suggest.css
src/vs/editor/contrib/suggest/browser/media/suggest.css
+7
-13
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
+4
-6
未找到文件。
src/vs/editor/contrib/suggest/browser/media/suggest.css
浏览文件 @
95f39245
...
...
@@ -87,7 +87,7 @@
font-weight
:
bold
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.
header
>
.
close
,
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.close
,
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
{
opacity
:
0.6
;
background-position
:
center
center
;
...
...
@@ -96,15 +96,16 @@
cursor
:
pointer
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.
header
>
.
close
{
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.close
{
background-image
:
url('./close.svg')
;
float
:
right
;
}
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
{
background-image
:
url('./info.svg')
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.
header
>
.
close
:hover
,
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.close
:hover
,
.monaco-editor
.suggest-widget
.monaco-list
.monaco-list-row
>
.contents
>
.main
>
.docs-details
:hover
{
opacity
:
1
;
}
...
...
@@ -203,14 +204,7 @@
white-space
:
pre-wrap
;
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
{
padding
:
4px
5px
;
display
:
flex
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
rgba
(
204
,
204
,
204
,
0.5
);
}
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.header
>
.type
{
.monaco-editor
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.type
{
flex
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
@@ -231,8 +225,8 @@
/* High Contrast and Dark Theming */
.monaco-editor.vs-dark
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.
header
>
.
close
,
.monaco-editor.hc-black
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.
header
>
.
close
{
.monaco-editor.vs-dark
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.close
,
.monaco-editor.hc-black
.suggest-widget
.details
>
.monaco-scrollable-element
>
.body
>
.close
{
background-image
:
url('./close-dark.svg')
;
}
...
...
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
浏览文件 @
95f39245
...
...
@@ -186,7 +186,6 @@ class SuggestionDetails {
private
el
:
HTMLElement
;
private
close
:
HTMLElement
;
private
header
:
HTMLElement
;
private
scrollbar
:
DomScrollableElement
;
private
body
:
HTMLElement
;
private
type
:
HTMLElement
;
...
...
@@ -211,11 +210,10 @@ class SuggestionDetails {
append
(
this
.
el
,
this
.
scrollbar
.
getDomNode
());
this
.
disposables
.
push
(
this
.
scrollbar
);
this
.
header
=
append
(
this
.
body
,
$
(
'
.header
'
));
this
.
type
=
append
(
this
.
header
,
$
(
'
p.type
'
));
this
.
close
=
append
(
this
.
header
,
$
(
'
span.close
'
));
this
.
close
=
append
(
this
.
body
,
$
(
'
span.close
'
));
this
.
close
.
title
=
nls
.
localize
(
'
readLess
'
,
"
Read less...{0}
"
,
triggerKeybindingLabel
);
this
.
type
=
append
(
this
.
body
,
$
(
'
p.type
'
));
this
.
docs
=
append
(
this
.
body
,
$
(
'
p.docs
'
));
this
.
ariaLabel
=
null
;
...
...
@@ -243,7 +241,7 @@ class SuggestionDetails {
this
.
type
.
innerText
=
item
.
suggestion
.
detail
||
''
;
this
.
docs
.
textContent
=
item
.
suggestion
.
documentation
;
this
.
el
.
style
.
height
=
this
.
header
.
offsetHeight
+
this
.
docs
.
offsetHeight
+
'
px
'
;
this
.
el
.
style
.
height
=
this
.
type
.
offsetHeight
+
this
.
docs
.
offsetHeight
+
'
px
'
;
this
.
close
.
onmousedown
=
e
=>
{
e
.
preventDefault
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录