Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d8ce0d82
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,发现更多精彩内容 >>
提交
d8ce0d82
编写于
5月 17, 2017
作者:
D
Daniel Imms
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove scrollbar from small suggestion docs
上级
78298312
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
8 deletion
+31
-8
src/vs/editor/contrib/suggest/browser/media/suggest.css
src/vs/editor/contrib/suggest/browser/media/suggest.css
+27
-3
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
+4
-5
未找到文件。
src/vs/editor/contrib/suggest/browser/media/suggest.css
浏览文件 @
d8ce0d82
...
...
@@ -9,11 +9,23 @@
width
:
660px
;
}
.monaco-editor
.suggest-widget.docs-expanded
>
.tree
,
.monaco-editor
.suggest-widget
>
.details
{
.monaco-editor
.suggest-widget.docs-expanded
>
.tree
{
width
:
330px
;
}
.monaco-editor
.suggest-widget
>
.details
{
/* .details does not use border-box, so subtract the border height here (2px). This is the case
because the height of .details is set prorammatically based on .header and .docs, we don't want
our JS to care about the size of the border (which changes based on theme type). */
width
:
328px
;
}
.monaco-editor
.suggest-widget
>
.details
,
.monaco-editor
.suggest-widget
>
.tree
{
border-style
:
solid
;
border-width
:
1px
;
}
.monaco-editor
.suggest-widget.small
,
.monaco-editor
.suggest-widget
>
.tree
,
.monaco-editor
.suggest-widget.small.docs-expanded
>
.tree
,
...
...
@@ -30,6 +42,8 @@
.monaco-editor
.suggest-widget
>
.message
{
padding-left
:
22px
;
border-style
:
solid
;
border-width
:
1px
;
}
.monaco-editor
.suggest-widget
>
.tree
{
...
...
@@ -171,7 +185,6 @@
display
:
flex
;
flex-direction
:
column
;
cursor
:
default
;
box-sizing
:
border-box
;
}
.monaco-editor
.suggest-widget
.details.no-docs
{
...
...
@@ -223,6 +236,17 @@
/* High Contrast Theming */
.monaco-editor.hc-black
.suggest-widget
>
.tree
,
.monaco-editor.hc-black
.suggest-widget
>
.message
{
border-width
:
2px
;
}
.monaco-editor.hc-black
.suggest-widget
>
.details
{
border-width
:
2px
;
width
:
326px
;
}
.monaco-editor.vs-dark
.suggest-widget
.monaco-list
.monaco-list-row
.icon
,
.monaco-editor.hc-black
.suggest-widget
.monaco-list
.monaco-list-row
.icon
{
background-image
:
url('Misc_inverse_16x.svg')
;
}
...
...
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
浏览文件 @
d8ce0d82
...
...
@@ -243,7 +243,7 @@ class SuggestionDetails {
this
.
type
.
innerText
=
item
.
suggestion
.
detail
||
''
;
this
.
docs
.
textContent
=
item
.
suggestion
.
documentation
;
this
.
el
.
style
.
height
=
this
.
type
.
clientHeight
+
this
.
docs
.
clientHeight
+
8
+
'
px
'
;
this
.
el
.
style
.
height
=
this
.
header
.
offsetHeight
+
this
.
docs
.
offsetHeight
+
'
px
'
;
this
.
close
.
onmousedown
=
e
=>
{
e
.
preventDefault
();
...
...
@@ -488,10 +488,9 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
}
let
borderColor
=
theme
.
getColor
(
editorSuggestWidgetBorder
);
if
(
borderColor
)
{
let
borderWidth
=
theme
.
type
===
'
hc
'
?
2
:
1
;
this
.
listElement
.
style
.
border
=
`
${
borderWidth
}
px solid
${
borderColor
}
`
;
this
.
details
.
element
.
style
.
border
=
`
${
borderWidth
}
px solid
${
borderColor
}
`
;
this
.
messageElement
.
style
.
border
=
`
${
borderWidth
}
px solid
${
borderColor
}
`
;
this
.
listElement
.
style
.
borderColor
=
borderColor
.
toString
();
this
.
details
.
element
.
style
.
borderColor
=
borderColor
.
toString
();
this
.
messageElement
.
style
.
borderColor
=
borderColor
.
toString
();
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录