diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2019-02-13 12:03:07 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2019-02-15 17:18:33 +0300 |
commit | 37a290033833ed5c83ae583b41517295685c5f1e (patch) | |
tree | bf2744ed3c7a8df12cd2249f08b5c4ba1c688ea3 | |
parent | 032e800b93dfe36604d896f2128ea05ad1330ece (diff) |
Make emoji picker bigger
The emoji picker shows 9 emoji for each row.
On mobile devices the width is reduced to 7 emoji for each row.
-rw-r--r-- | app/assets/stylesheets/framework/awards.scss | 6 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/variables.scss | 2 | ||||
-rw-r--r-- | changelogs/unreleased/50433-make-emoji-picker-bigger.yml | 5 |
3 files changed, 12 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/awards.scss b/app/assets/stylesheets/framework/awards.scss index ad650d45314..fd4fb16b941 100644 --- a/app/assets/stylesheets/framework/awards.scss +++ b/app/assets/stylesheets/framework/awards.scss @@ -15,7 +15,7 @@ margin-top: 3px; padding: $gl-padding; z-index: 300; - width: 300px; + width: $award-emoji-width; font-size: 14px; background-color: $white-light; border: 1px solid $border-white-light; @@ -55,6 +55,10 @@ transform: none; } } + + @include media-breakpoint-down(xs) { + width: $award-emoji-width-xs; + } } .emoji-search { diff --git a/app/assets/stylesheets/framework/variables.scss b/app/assets/stylesheets/framework/variables.scss index 96dab609a13..ccc8baaa6c2 100644 --- a/app/assets/stylesheets/framework/variables.scss +++ b/app/assets/stylesheets/framework/variables.scss @@ -405,6 +405,8 @@ $status-icon-size: 22px; $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; /* * Search Box diff --git a/changelogs/unreleased/50433-make-emoji-picker-bigger.yml b/changelogs/unreleased/50433-make-emoji-picker-bigger.yml new file mode 100644 index 00000000000..8fcf41df09d --- /dev/null +++ b/changelogs/unreleased/50433-make-emoji-picker-bigger.yml @@ -0,0 +1,5 @@ +--- +title: Make emoji picker bigger +merge_request: 25187 +author: Jacopo Beschi @jacopo-beschi +type: changed |