Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8466dcaf
Commit
8466dcaf
authored
Nov 04, 2019
by
pburdette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change blob view edit styling
parent
5d94e9d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+4
-0
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+3
-3
No files found.
app/assets/stylesheets/framework/files.scss
View file @
8466dcaf
...
...
@@ -387,6 +387,10 @@ span.idiff {
float
:
none
;
}
.file-actions
.ide-edit-button
{
z-index
:
1
;
}
@include
media-breakpoint-down
(
xs
)
{
display
:
block
;
...
...
app/helpers/blob_helper.rb
View file @
8466dcaf
...
...
@@ -47,7 +47,7 @@ module BlobHelper
def
edit_blob_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
return
unless
blob
=
readable_blob
(
options
,
path
,
project
,
ref
)
common_classes
=
"btn js-edit-blob
#{
options
[
:extra_class
]
}
"
common_classes
=
"btn
btn-primary
js-edit-blob
#{
options
[
:extra_class
]
}
"
edit_button_tag
(
blob
,
common_classes
,
...
...
@@ -62,7 +62,7 @@ module BlobHelper
return
unless
blob
=
readable_blob
(
options
,
path
,
project
,
ref
)
edit_button_tag
(
blob
,
'btn btn-
default
'
,
'btn btn-
inverted btn-primary ide-edit-button
'
,
_
(
'Web IDE'
),
ide_edit_path
(
project
,
ref
,
path
,
options
),
project
,
...
...
@@ -108,7 +108,7 @@ module BlobHelper
path
,
label:
_
(
"Delete"
),
action:
"delete"
,
btn_class:
"
remove
"
,
btn_class:
"
default
"
,
modal_type:
"remove"
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment