BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e74ef3ac
Commit
e74ef3ac
authored
Nov 29, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'backport-border-inline-edit' into 'master'
Backport - Add border for epic edit button See merge request gitlab-org/gitlab-ce!15637
parents
59f93de0
27d64f5b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
13 deletions
+20
-13
title.vue
app/assets/javascripts/issue_show/components/title.vue
+1
-1
animations.scss
app/assets/stylesheets/framework/animations.scss
+1
-1
buttons.scss
app/assets/stylesheets/framework/buttons.scss
+11
-0
issuable.scss
app/assets/stylesheets/pages/issuable.scss
+2
-3
notes.scss
app/assets/stylesheets/pages/notes.scss
+1
-4
title_spec.js
spec/javascripts/issue_show/components/title_spec.js
+4
-4
No files found.
app/assets/javascripts/issue_show/components/title.vue
View file @
e74ef3ac
...
...
@@ -79,7 +79,7 @@
v-tooltip
v-if=
"showInlineEditButton && canUpdate"
type=
"button"
class=
"btn
-blank btn-edit note-action-button
"
class=
"btn
btn-default btn-edit btn-svg
"
v-html=
"pencilIcon"
title=
"Edit title and description"
data-placement=
"bottom"
...
...
app/assets/stylesheets/framework/animations.scss
View file @
e74ef3ac
...
...
@@ -125,7 +125,7 @@
@include
transition
(
border-color
);
}
.note-action-button
.link-highlight
,
.note-action-button
,
.toolbar-btn
,
.dropdown-toggle-caret
{
@include
transition
(
color
);
...
...
app/assets/stylesheets/framework/buttons.scss
View file @
e74ef3ac
...
...
@@ -131,6 +131,13 @@
}
}
@mixin
btn-svg
{
height
:
$gl-padding
;
width
:
$gl-padding
;
top
:
0
;
vertical-align
:
text-top
;
}
.btn
{
@include
btn-default
;
@include
btn-white
;
...
...
@@ -429,3 +436,7 @@
text-decoration
:
none
;
}
}
.btn-svg
svg
{
@include
btn-svg
;
}
app/assets/stylesheets/pages/issuable.scss
View file @
e74ef3ac
...
...
@@ -70,14 +70,13 @@
.title
{
padding
:
0
;
margin-bottom
:
16px
;
margin-bottom
:
$gl-padding
;
border-bottom
:
0
;
}
.btn-edit
{
margin-left
:
auto
;
// Set height to match title height
height
:
2em
;
height
:
$gl-padding
*
2
;
}
// Border around images in issue and MR descriptions.
...
...
app/assets/stylesheets/pages/notes.scss
View file @
e74ef3ac
...
...
@@ -543,10 +543,7 @@ ul.notes {
}
svg
{
height
:
16px
;
width
:
16px
;
top
:
0
;
vertical-align
:
text-top
;
@include
btn-svg
;
}
.award-control-icon-positive
,
...
...
spec/javascripts/issue_show/components/title_spec.js
View file @
e74ef3ac
...
...
@@ -80,19 +80,19 @@ describe('Title component', () => {
});
it
(
'should not show by default'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'.
note-action-button
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'.
btn-edit
'
)).
toBeNull
();
});
it
(
'should not show if canUpdate is false'
,
()
=>
{
vm
.
showInlineEditButton
=
true
;
vm
.
canUpdate
=
false
;
expect
(
vm
.
$el
.
querySelector
(
'.
note-action-button
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'.
btn-edit
'
)).
toBeNull
();
});
it
(
'should show if showInlineEditButton and canUpdate'
,
()
=>
{
vm
.
showInlineEditButton
=
true
;
vm
.
canUpdate
=
true
;
expect
(
vm
.
$el
.
querySelector
(
'.
note-action-button
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'.
btn-edit
'
)).
toBeDefined
();
});
it
(
'should trigger open.form event when clicked'
,
()
=>
{
...
...
@@ -100,7 +100,7 @@ describe('Title component', () => {
vm
.
canUpdate
=
true
;
Vue
.
nextTick
(()
=>
{
vm
.
$el
.
querySelector
(
'.
note-action-button
'
).
click
();
vm
.
$el
.
querySelector
(
'.
btn-edit
'
).
click
();
expect
(
eventHub
.
$emit
).
toHaveBeenCalledWith
(
'open.form'
);
});
});
...
...
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