PLT-7262 Stopped including emoji sprite sheets multiple times in CSS (#7077)
* PLT-7262 Stopped including emoji sprite sheets multiple times in CSS * Changed EmojiPickerItem to be a PureComponent
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0cc5854b64
Коммит
d79e538d27
@@ -165,6 +165,8 @@ categories.each do |category|
|
||||
end
|
||||
end
|
||||
|
||||
css_rules << ".emoji-category-#{category} { background-image: url('../images/emoji-sheets/#{category}.png'); }"
|
||||
|
||||
SpriteFactory.run!(
|
||||
tmp_directory,
|
||||
:layout => :packed,
|
||||
@@ -175,9 +177,9 @@ categories.each do |category|
|
||||
) do |images|
|
||||
images.each do |name, image|
|
||||
if image[:cssw] != 64 || image[:cssh] != 64
|
||||
css_rules << ".emoji-#{name} { background-image: url(../images/emoji-sheets/#{category}.png); background-position: -#{image[:cssx]}px -#{image[:cssy]}px; width: #{image[:cssw]}px; height: #{image[:cssh]}px; }"
|
||||
css_rules << ".emoji-#{name} { background-position: -#{image[:cssx]}px -#{image[:cssy]}px; width: #{image[:cssw]}px; height: #{image[:cssh]}px; }"
|
||||
else
|
||||
css_rules << ".emoji-#{name} { background-image: url(../images/emoji-sheets/#{category}.png); background-position: -#{image[:cssx]}px -#{image[:cssy]}px; }"
|
||||
css_rules << ".emoji-#{name} { background-position: -#{image[:cssx]}px -#{image[:cssy]}px; }"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Ссылка в новой задаче
Block a user