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
fa976454
Commit
fa976454
authored
Mar 22, 2019
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes emoji picker full width on mobile
parent
b5337659
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
app/assets/javascripts/awards_handler.js
app/assets/javascripts/awards_handler.js
+5
-1
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-1
changelogs/unreleased/57648-make-emoji-picker-full-width-on-mobile.yml
...released/57648-make-emoji-picker-full-width-on-mobile.yml
+5
-0
No files found.
app/assets/javascripts/awards_handler.js
View file @
fa976454
...
...
@@ -8,6 +8,7 @@ import { updateTooltipTitle } from './lib/utils/common_utils';
import
{
isInVueNoteablePage
}
from
'
./lib/utils/dom_utils
'
;
import
flash
from
'
./flash
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
bp
from
'
./breakpoints
'
;
const
animationEndEventString
=
'
animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd
'
;
const
transitionEndEventString
=
'
transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd
'
;
...
...
@@ -264,7 +265,10 @@ export class AwardsHandler {
const
css
=
{
top
:
`
${
$addBtn
.
offset
().
top
+
$addBtn
.
outerHeight
()}
px`
,
};
if
(
position
===
'
right
'
)
{
// for xs screen we position the element on center
if
(
bp
.
getBreakpointSize
()
===
'
xs
'
)
{
css
.
left
=
'
5%
'
;
}
else
if
(
position
===
'
right
'
)
{
css
.
left
=
`
${
$addBtn
.
offset
().
left
-
$menu
.
outerWidth
()
+
20
}
px`
;
$menu
.
addClass
(
'
is-aligned-right
'
);
}
else
{
...
...
app/assets/stylesheets/framework/variables.scss
View file @
fa976454
...
...
@@ -410,7 +410,7 @@ $award-emoji-menu-shadow: rgba(0, 0, 0, 0.175);
$award-emoji-positive-add-bg
:
#fed159
;
$award-emoji-positive-add-lines
:
#bb9c13
;
$award-emoji-width
:
376px
;
$award-emoji-width-xs
:
300px
;
$award-emoji-width-xs
:
90%
;
/*
* Search Box
...
...
changelogs/unreleased/57648-make-emoji-picker-full-width-on-mobile.yml
0 → 100644
View file @
fa976454
---
title
:
Makes emoji picker full width on mobile.
merge_request
:
25883
author
:
Jacopo Beschi @jacopo-beschi
type
:
fixed
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