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:
Régis Hanol
2024-10-18 19:22:13 +02:00
committed by GitHub
parent 6bdb6650a2
commit 97ba39e60f
3 changed files with 9 additions and 10 deletions

View File

@ -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