Commit b97d9a19 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '30810-blob-view-buttons' into 'master'

Change blob view edit styling

Closes #30810

See merge request gitlab-org/gitlab!19566
parents b800b019 387703ed
......@@ -387,6 +387,10 @@ span.idiff {
float: none;
}
.file-actions .ide-edit-button {
z-index: 2;
}
@include media-breakpoint-down(xs) {
display: block;
......
......@@ -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
......
---
title: Change blob edit view button styling
merge_request: 19566
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment