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
954fa1ca
Commit
954fa1ca
authored
Feb 07, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
8805d9c5
82423ac3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
13 deletions
+12
-13
app/assets/javascripts/awards_handler.js
app/assets/javascripts/awards_handler.js
+1
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-3
app/assets/javascripts/notes/components/note_actions.vue
app/assets/javascripts/notes/components/note_actions.vue
+4
-5
app/assets/javascripts/notes/components/note_awards_list.vue
app/assets/javascripts/notes/components/note_awards_list.vue
+0
-2
app/views/award_emoji/_awards_block.html.haml
app/views/award_emoji/_awards_block.html.haml
+2
-2
changelogs/unreleased/tooltips-to-top.yml
changelogs/unreleased/tooltips-to-top.yml
+5
-0
No files found.
app/assets/javascripts/awards_handler.js
View file @
954fa1ca
...
...
@@ -437,7 +437,7 @@ export class AwardsHandler {
createAwardButtonForVotesBlock
(
votesBlock
,
emojiName
)
{
const
buttonHtml
=
`
<button class="btn award-control js-emoji-btn has-tooltip active" title="You"
data-placement="bottom"
>
<button class="btn award-control js-emoji-btn has-tooltip active" title="You">
${
this
.
emoji
.
glEmojiTag
(
emojiName
)}
<span class="award-control-text js-counter">1</span>
</button>
...
...
app/assets/javascripts/main.js
View file @
954fa1ca
...
...
@@ -127,9 +127,6 @@ function deferredInitialisation() {
selector
:
'
.has-tooltip, [data-toggle="tooltip"]
'
,
trigger
:
'
hover
'
,
boundary
:
'
viewport
'
,
placement
(
tip
,
el
)
{
return
$
(
el
).
data
(
'
placement
'
)
||
'
bottom
'
;
},
});
// Initialize popovers
...
...
app/assets/javascripts/notes/components/note_actions.vue
View file @
954fa1ca
...
...
@@ -156,10 +156,9 @@ export default {
</div>
<div
v-if=
"canAwardEmoji"
class=
"note-actions-item"
>
<a
v-gl-tooltip
.
bottom
v-gl-tooltip
:class=
"{ 'js-user-authored': isAuthoredByCurrentUser }"
class=
"note-action-button note-emoji-button js-add-award js-note-emoji"
data-position=
"right"
href=
"#"
title=
"Add reaction"
>
...
...
@@ -180,7 +179,7 @@ export default {
/>
<div
v-if=
"canEdit"
class=
"note-actions-item"
>
<button
v-gl-tooltip
.
bottom
v-gl-tooltip
type=
"button"
title=
"Edit comment"
class=
"note-action-button js-note-edit btn btn-transparent"
...
...
@@ -191,7 +190,7 @@ export default {
</div>
<div
v-if=
"showDeleteAction"
class=
"note-actions-item"
>
<button
v-gl-tooltip
.
bottom
v-gl-tooltip
type=
"button"
title=
"Delete comment"
class=
"note-action-button js-note-delete btn btn-transparent"
...
...
@@ -202,7 +201,7 @@ export default {
</div>
<div
v-else-if=
"shouldShowActionsDropdown"
class=
"dropdown more-actions note-actions-item"
>
<button
v-gl-tooltip
.
bottom
v-gl-tooltip
type=
"button"
title=
"More actions"
class=
"note-action-button more-actions-toggle btn btn-transparent"
...
...
app/assets/javascripts/notes/components/note_awards_list.vue
View file @
954fa1ca
...
...
@@ -171,7 +171,6 @@ export default {
:class=
"getAwardClassBindings(awardList)"
:title=
"awardTitle(awardList)"
data-boundary=
"viewport"
data-placement=
"bottom"
class=
"btn award-control"
type=
"button"
@
click=
"handleAward(awardName)"
...
...
@@ -187,7 +186,6 @@ export default {
title="Add reaction"
aria-label="Add reaction"
data-boundary="viewport"
data-placement="bottom"
type="button"
>
<span
class=
"award-control-icon award-control-icon-neutral"
>
...
...
app/views/award_emoji/_awards_block.html.haml
View file @
954fa1ca
...
...
@@ -3,7 +3,7 @@
-
awards_sort
(
grouped_emojis
).
each
do
|
emoji
,
awards
|
%button
.btn.award-control.js-emoji-btn.has-tooltip
{
type:
"button"
,
class:
[(
award_state_class
(
awardable
,
awards
,
current_user
))],
data:
{
placement:
"bottom"
,
title:
award_user_list
(
awards
,
current_user
)
}
}
data:
{
title:
award_user_list
(
awards
,
current_user
)
}
}
=
emoji_icon
(
emoji
)
%span
.award-control-text.js-counter
=
awards
.
count
...
...
@@ -12,7 +12,7 @@
.award-menu-holder.js-award-holder
%button
.btn.award-control.has-tooltip.js-add-award
{
type:
'button'
,
'aria-label'
:
_
(
'Add reaction'
),
data:
{
title:
_
(
'Add reaction'
)
,
placement:
"bottom"
}
}
data:
{
title:
_
(
'Add reaction'
)
}
}
%span
{
class:
"award-control-icon award-control-icon-neutral"
}=
custom_icon
(
'emoji_slightly_smiling_face'
)
%span
{
class:
"award-control-icon award-control-icon-positive"
}=
custom_icon
(
'emoji_smiley'
)
%span
{
class:
"award-control-icon award-control-icon-super-positive"
}=
custom_icon
(
'emoji_smile'
)
...
...
changelogs/unreleased/tooltips-to-top.yml
0 → 100644
View file @
954fa1ca
---
title
:
Change spawning of tooltips to be top by default
merge_request
:
21223
author
:
type
:
changed
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