Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
392a0605
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,发现更多精彩内容 >>
提交
392a0605
编写于
2月 18, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix vertical alignment in git changes view
上级
5bf2ca96
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
src/vs/workbench/parts/git/browser/views/changes/changesView.css
...workbench/parts/git/browser/views/changes/changesView.css
+3
-3
src/vs/workbench/parts/git/browser/views/changes/changesViewer.ts
...orkbench/parts/git/browser/views/changes/changesViewer.ts
+11
-11
未找到文件。
src/vs/workbench/parts/git/browser/views/changes/changesView.css
浏览文件 @
392a0605
...
...
@@ -32,16 +32,16 @@
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.content
{
line-height
:
22px
;
display
:
flex
;
}
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.content
.monaco-action-bar
{
float
:
right
;
display
:
none
;
margin-right
:
12px
;
}
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.content
.monaco-action-bar
.action-item
{
vertical-align
:
middle
;
margin-top
:
2px
;
}
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.content
.monaco-action-bar
.action-label
{
...
...
@@ -72,7 +72,6 @@
}
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.count-badge-wrapper
{
float
:
right
;
padding-right
:
12px
;
}
...
...
@@ -80,6 +79,7 @@
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.file-status
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
flex
:
1
;
}
.vs-dark
.git-viewlet
>
.changes-view
>
.status-view
>
.monaco-tree
.monaco-tree-row
.status-group
{
...
...
src/vs/workbench/parts/git/browser/views/changes/changesViewer.ts
浏览文件 @
392a0605
...
...
@@ -265,13 +265,6 @@ export class Renderer implements tree.IRenderer {
private
renderStatusGroupTemplate
(
statusType
:
git
.
StatusType
,
container
:
HTMLElement
):
IStatusGroupTemplateData
{
var
data
:
IStatusGroupTemplateData
=
Object
.
create
(
null
);
data
.
actionBar
=
new
actionbar
.
ActionBar
(
container
,
{
actionRunner
:
this
.
actionRunner
});
data
.
actionBar
.
push
(
this
.
actionProvider
.
getActionsForGroupStatusType
(
statusType
),
{
icon
:
true
,
label
:
false
});
data
.
actionBar
.
addListener2
(
'
run
'
,
e
=>
e
.
error
&&
this
.
onError
(
e
.
error
));
const
wrapper
=
dom
.
append
(
container
,
$
(
'
.count-badge-wrapper
'
));
data
.
count
=
new
countbadge
.
CountBadge
(
wrapper
);
data
.
root
=
dom
.
append
(
container
,
$
(
'
.status-group
'
));
switch
(
statusType
)
{
...
...
@@ -280,16 +273,19 @@ export class Renderer implements tree.IRenderer {
case
git
.
StatusType
.
MERGE
:
data
.
root
.
textContent
=
nls
.
localize
(
'
mergeChanges
'
,
"
Merge Changes
"
);
break
;
}
const
wrapper
=
dom
.
append
(
container
,
$
(
'
.count-badge-wrapper
'
));
data
.
count
=
new
countbadge
.
CountBadge
(
wrapper
);
data
.
actionBar
=
new
actionbar
.
ActionBar
(
container
,
{
actionRunner
:
this
.
actionRunner
});
data
.
actionBar
.
push
(
this
.
actionProvider
.
getActionsForGroupStatusType
(
statusType
),
{
icon
:
true
,
label
:
false
});
data
.
actionBar
.
addListener2
(
'
run
'
,
e
=>
e
.
error
&&
this
.
onError
(
e
.
error
));
return
data
;
}
private
renderFileStatusTemplate
(
statusType
:
git
.
StatusType
,
container
:
HTMLElement
):
IFileStatusTemplateData
{
var
data
:
IFileStatusTemplateData
=
Object
.
create
(
null
);
data
.
actionBar
=
new
actionbar
.
ActionBar
(
container
,
{
actionRunner
:
this
.
actionRunner
});
data
.
actionBar
.
push
(
this
.
actionProvider
.
getActionsForFileStatusType
(
statusType
),
{
icon
:
true
,
label
:
false
});
data
.
actionBar
.
addListener2
(
'
run
'
,
e
=>
e
.
error
&&
this
.
onError
(
e
.
error
));
data
.
root
=
dom
.
append
(
container
,
$
(
'
.file-status
'
));
data
.
status
=
dom
.
append
(
data
.
root
,
$
(
'
span.status
'
));
data
.
name
=
dom
.
append
(
data
.
root
,
$
(
'
a.name.plain
'
));
...
...
@@ -302,6 +298,10 @@ export class Renderer implements tree.IRenderer {
data
.
renameName
=
dom
.
append
(
rename
,
$
(
'
span.rename-name
'
));
data
.
renameFolder
=
dom
.
append
(
rename
,
$
(
'
span.rename-folder
'
));
data
.
actionBar
=
new
actionbar
.
ActionBar
(
container
,
{
actionRunner
:
this
.
actionRunner
});
data
.
actionBar
.
push
(
this
.
actionProvider
.
getActionsForFileStatusType
(
statusType
),
{
icon
:
true
,
label
:
false
});
data
.
actionBar
.
addListener2
(
'
run
'
,
e
=>
e
.
error
&&
this
.
onError
(
e
.
error
));
return
data
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录