Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
f88ffe41
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,发现更多精彩内容 >>
提交
f88ffe41
编写于
5月 30, 2019
作者:
M
Marcel van Remmerden
提交者:
Annabel Dunstone Gray
5月 30, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Get copy to clipboard button aligned within snippet header
上级
82ccc8bc
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
7 deletion
+14
-7
app/assets/javascripts/diffs/components/diff_file_header.vue
app/assets/javascripts/diffs/components/diff_file_header.vue
+1
-1
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+2
-0
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+0
-4
app/assets/stylesheets/framework/snippets.scss
app/assets/stylesheets/framework/snippets.scss
+4
-0
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+1
-1
app/views/projects/blob/_header_content.html.haml
app/views/projects/blob/_header_content.html.haml
+1
-1
changelogs/unreleased/61323-snippet-copy-icon-button-is-misaligned.yml
...released/61323-snippet-copy-icon-button-is-misaligned.yml
+5
-0
未找到文件。
app/assets/javascripts/diffs/components/diff_file_header.vue
浏览文件 @
f88ffe41
...
...
@@ -240,7 +240,7 @@ export default {
css-class=
"btn-default btn-transparent btn-clipboard"
/>
<small
v-if=
"isModeChanged"
ref=
"fileMode"
>
<small
v-if=
"isModeChanged"
ref=
"fileMode"
class=
"mr-1"
>
{{
diffFile
.
a_mode
}}
→
{{
diffFile
.
b_mode
}}
</small>
...
...
app/assets/stylesheets/framework/buttons.scss
浏览文件 @
f88ffe41
...
...
@@ -339,6 +339,8 @@
svg
{
top
:
auto
;
width
:
16px
;
height
:
16px
;
}
}
...
...
app/assets/stylesheets/framework/files.scss
浏览文件 @
f88ffe41
...
...
@@ -366,10 +366,6 @@ span.idiff {
color
:
$gl-text-color
;
}
small
{
margin
:
0
10px
0
0
;
}
.file-actions
.btn
{
padding
:
0
10px
;
font-size
:
13px
;
...
...
app/assets/stylesheets/framework/snippets.scss
浏览文件 @
f88ffe41
...
...
@@ -22,6 +22,10 @@
.snippet-file-content
{
border-radius
:
3px
;
.file-title-flex-parent
.btn-clipboard
{
line-height
:
28px
;
}
}
.snippet-header
{
...
...
app/helpers/blob_helper.rb
浏览文件 @
f88ffe41
...
...
@@ -188,7 +188,7 @@ module BlobHelper
end
def
copy_file_path_button
(
file_path
)
clipboard_button
(
text:
file_path
,
gfm:
"`
#{
file_path
}
`"
,
class:
'btn-clipboard btn-transparent
prepend-left-5
'
,
title:
'Copy file path to clipboard'
)
clipboard_button
(
text:
file_path
,
gfm:
"`
#{
file_path
}
`"
,
class:
'btn-clipboard btn-transparent'
,
title:
'Copy file path to clipboard'
)
end
def
copy_blob_source_button
(
blob
)
...
...
app/views/projects/blob/_header_content.html.haml
浏览文件 @
f88ffe41
...
...
@@ -6,7 +6,7 @@
=
copy_file_path_button
(
blob
.
path
)
%small
%small
.mr-1
=
number_to_human_size
(
blob
.
raw_size
)
-
if
blob
.
stored_externally?
&&
blob
.
external_storage
==
:lfs
...
...
changelogs/unreleased/61323-snippet-copy-icon-button-is-misaligned.yml
0 → 100644
浏览文件 @
f88ffe41
---
title
:
Resolve Snippet icon button is misaligned
merge_request
:
28522
author
:
Marcel van Remmerden
type
:
other
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录