mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: bump the number of svg icons we return to first 500 (#29286)
instead of the first 200 which would "hide" some icons from the list when picking an icon for a badge or a sidebar link. Internal ref - t/119652
This commit is contained in:
@ -48,8 +48,9 @@ class SvgSpriteController < ApplicationController
|
||||
filter = params[:filter] || ""
|
||||
only_available = params[:only_available]
|
||||
|
||||
icons = SvgSprite.icon_picker_search(filter, only_available)
|
||||
render json: icons.take(200), root: false
|
||||
icons = SvgSprite.icon_picker_search(filter, only_available).take(500)
|
||||
|
||||
render json: icons, root: false
|
||||
end
|
||||
|
||||
def svg_icon
|
||||
|
Reference in New Issue
Block a user