Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
49df4118
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
49df4118
编写于
8月 16, 2017
作者:
E
Eric Eastwood
提交者:
Jacob Schatz
8月 16, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Repo editor with flex layout
上级
22f452d0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
32 addition
and
18 deletion
+32
-18
app/assets/javascripts/repo/components/repo.vue
app/assets/javascripts/repo/components/repo.vue
+12
-9
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+20
-9
未找到文件。
app/assets/javascripts/repo/components/repo.vue
浏览文件 @
49df4118
...
...
@@ -43,15 +43,18 @@ export default {
</
script
>
<
template
>
<div
class=
"repository-view tree-content-holder"
>
<repo-sidebar/><div
v-if=
"isMini"
class=
"panel-right"
:class=
"
{'edit-mode': editMode}">
<repo-tabs/>
<component
:is=
"currentBlobView"
class=
"blob-viewer-container"
/>
<repo-file-buttons/>
<div
class=
"repository-view"
>
<div
class=
"tree-content-holder"
:class=
"
{'tree-content-holder-mini' : isMini}">
<repo-sidebar/>
<div
v-if=
"isMini"
class=
"panel-right"
:class=
"
{'edit-mode': editMode}">
<repo-tabs/>
<component
:is=
"currentBlobView"
class=
"blob-viewer-container"
/>
<repo-file-buttons/>
</div>
</div>
<repo-commit-section/>
<popup-dialog
...
...
app/assets/stylesheets/pages/repo.scss
浏览文件 @
49df4118
...
...
@@ -47,14 +47,26 @@
margin
:
20px
;
}
.repository-view
.tree-content-holder
{
.repository-view
{
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius-default
;
color
:
$almost-black
;
.tree-content-holder
{
display
:
flex
;
max-height
:
100vh
;
min-height
:
300px
;
}
.tree-content-holder-mini
{
height
:
100vh
;
}
.panel-right
{
display
:
inline-block
;
display
:
flex
;
flex-direction
:
column
;
width
:
80%
;
height
:
100%
;
.monaco-editor.vs
{
.line-numbers
{
...
...
@@ -85,16 +97,17 @@
}
.blob-viewer-container
{
height
:
calc
(
100vh
-
62px
)
;
flex
:
1
;
overflow
:
auto
;
}
#tabs
{
flex-shrink
:
0
;
display
:
flex
;
width
:
100%
;
padding-left
:
0
;
margin-bottom
:
0
;
display
:
flex
;
white-space
:
nowrap
;
width
:
100%
;
overflow-y
:
hidden
;
overflow-x
:
auto
;
...
...
@@ -222,14 +235,12 @@
}
#sidebar
{
flex
:
1
;
height
:
100%
;
&
.sidebar-mini
{
display
:
inline-block
;
vertical-align
:
top
;
width
:
20%
;
border-right
:
1px
solid
$white-normal
;
min-height
:
475px
;
height
:
calc
(
100vh
+
20px
);
overflow
:
auto
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录