Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ce396fd2
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce396fd2
编写于
7月 07, 2017
作者:
J
João Moreno
提交者:
Benjamin Pasero
7月 07, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes #28602 (#30182)
* fixes #28602 * fix keybinding widget mess
上级
40606d2e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
12 deletion
+22
-12
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css
+15
-6
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.ts
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.ts
+4
-4
src/vs/base/parts/quickopen/browser/quickopen.css
src/vs/base/parts/quickopen/browser/quickopen.css
+2
-1
src/vs/workbench/parts/preferences/browser/media/keybindings.css
...workbench/parts/preferences/browser/media/keybindings.css
+1
-1
未找到文件。
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css
浏览文件 @
ce396fd2
...
...
@@ -3,11 +3,13 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-kb
{
white-space
:
nowrap
;
.monaco-keybinding
{
display
:
flex
;
align-items
:
center
;
line-height
:
10px
;
}
.monaco-k
b
key
{
.monaco-k
eybinding
>
.monaco-keybinding-
key
{
display
:
inline-block
;
border
:
solid
1px
rgba
(
204
,
204
,
204
,
0.4
);
border-bottom-color
:
rgba
(
187
,
187
,
187
,
0.4
);
...
...
@@ -16,16 +18,23 @@
background-color
:
rgba
(
221
,
221
,
221
,
0.4
);
vertical-align
:
middle
;
color
:
#555
;
line-height
:
10px
;
font-size
:
11px
;
padding
:
3px
5px
;
}
.hc-black
.monaco-k
b
key
,
.vs-dark
.monaco-k
b
key
{
.hc-black
.monaco-k
eybinding
>
.monaco-keybinding-
key
,
.vs-dark
.monaco-k
eybinding
>
.monaco-keybinding-
key
{
background-color
:
rgba
(
128
,
128
,
128
,
0.17
);
color
:
#ccc
;
border
:
solid
1px
rgba
(
51
,
51
,
51
,
0.6
);
border-bottom-color
:
rgba
(
68
,
68
,
68
,
0.6
);
box-shadow
:
inset
0
-1px
0
rgba
(
68
,
68
,
68
,
0.6
);
}
.monaco-keybinding
>
.monaco-keybinding-key-separator
{
display
:
inline-block
;
}
.monaco-keybinding
>
.monaco-keybinding-key-chord-separator
{
width
:
2px
;
}
\ No newline at end of file
src/vs/base/browser/ui/keybindingLabel/keybindingLabel.ts
浏览文件 @
ce396fd2
...
...
@@ -35,7 +35,7 @@ export class KeybindingLabel implements IDisposable {
private
didEverRender
:
boolean
;
constructor
(
container
:
HTMLElement
,
private
os
:
OperatingSystem
)
{
this
.
domNode
=
dom
.
append
(
container
,
$
(
'
.
htmlkb
'
));
this
.
domNode
=
dom
.
append
(
container
,
$
(
'
.
monaco-keybinding
'
));
this
.
didEverRender
=
false
;
container
.
appendChild
(
this
.
domNode
);
}
...
...
@@ -63,7 +63,7 @@ export class KeybindingLabel implements IDisposable {
this
.
renderPart
(
this
.
domNode
,
firstPart
,
this
.
matches
?
this
.
matches
.
firstPart
:
null
);
}
if
(
chordPart
)
{
dom
.
append
(
this
.
domNode
,
$
(
'
span
'
,
null
,
'
'
));
dom
.
append
(
this
.
domNode
,
$
(
'
span
.monaco-keybinding-key-chord-separator
'
,
null
,
'
'
));
this
.
renderPart
(
this
.
domNode
,
chordPart
,
this
.
matches
?
this
.
matches
.
chordPart
:
null
);
}
this
.
domNode
.
title
=
this
.
keybinding
.
getAriaLabel
();
...
...
@@ -93,9 +93,9 @@ export class KeybindingLabel implements IDisposable {
}
private
renderKey
(
parent
:
HTMLElement
,
label
:
string
,
highlight
:
boolean
,
separator
:
string
):
void
{
dom
.
append
(
parent
,
$
(
'
span.monaco-k
b
key
'
+
(
highlight
?
'
.highlight
'
:
''
),
null
,
label
));
dom
.
append
(
parent
,
$
(
'
span.monaco-k
eybinding-
key
'
+
(
highlight
?
'
.highlight
'
:
''
),
null
,
label
));
if
(
separator
)
{
dom
.
append
(
parent
,
$
(
'
span
'
,
null
,
separator
));
dom
.
append
(
parent
,
$
(
'
span
.monaco-keybinding-key-separator
'
,
null
,
separator
));
}
}
...
...
src/vs/base/parts/quickopen/browser/quickopen.css
浏览文件 @
ce396fd2
...
...
@@ -52,6 +52,7 @@
text-overflow
:
ellipsis
;
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
}
.quick-open-widget
.quick-open-tree
.quick-open-entry
>
.quick-open-row
{
...
...
@@ -91,7 +92,7 @@
margin-right
:
8px
;
}
.quick-open-widget
.quick-open-tree
.quick-open-entry-keybinding
.monaco-k
b
key
{
.quick-open-widget
.quick-open-tree
.quick-open-entry-keybinding
.monaco-k
eybinding-
key
{
vertical-align
:
text-bottom
;
}
...
...
src/vs/workbench/parts/preferences/browser/media/keybindings.css
浏览文件 @
ce396fd2
...
...
@@ -30,7 +30,7 @@
justify-content
:
center
;
}
.defineKeybindingWidget
.output
.
htmlkb
{
.defineKeybindingWidget
.output
.
monaco-keybinding
{
margin
:
0px
4px
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录