Use Emojione's SVG sprites

pull/2641/head
Diego Sampaio 10 years ago
parent 4404df2c4a
commit 305eed73be
  1. 2
      .meteor/versions
  2. 6
      packages/rocketchat-emojione/rocketchat.coffee
  3. 2
      packages/rocketchat-reactions/client/stylesheets/reaction.less

@ -40,7 +40,7 @@ ecmascript-runtime@0.2.6
edgee:slingshot@0.7.1
ejson@1.0.7
email@1.0.8
emojione:emojione@2.1.2
emojione:emojione@2.1.2_1
facebook@1.2.2
fastclick@1.0.7
francocatena:status@1.5.1

@ -1,6 +1,10 @@
# RocketChat.emoji should be set to an object representing the emoji package used
RocketChat.emoji = emojione
RocketChat.emoji.imageType = 'svg';
RocketChat.emoji.imagePathSVGSprites = '/packages/emojione_emojione/assets/sprites/emojione.sprites.svg';
RocketChat.emoji.sprites = true;
# RocketChat.emoji.list is the collection of emojis
RocketChat.emoji.list = emojione.emojioneList
@ -10,4 +14,4 @@ RocketChat.emoji.class = 'Emojione'
# Additional settings -- ascii emojis
Meteor.startup ->
Tracker.autorun ->
emojione?.ascii = if Meteor.user()?.settings?.preferences?.convertAsciiEmoji? then Meteor.user().settings.preferences.convertAsciiEmoji else true
emojione?.ascii = if Meteor.user()?.settings?.preferences?.convertAsciiEmoji? then Meteor.user().settings.preferences.convertAsciiEmoji else true

@ -15,7 +15,7 @@
padding-right: 2px;
.reaction-emoji {
img {
.emojione {
min-width: 15px;
min-height: 15px;
width: 15px;

Loading…
Cancel
Save