Commit 36c6df38 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '251085-update-allowed-avatar-sizes' into 'master'

Add popular avatar sizes for user, group and project

Closes #251085

See merge request gitlab-org/gitlab!43160
parents 6617ecce 5767a298
...@@ -3,16 +3,11 @@ ...@@ -3,16 +3,11 @@
module Avatarable module Avatarable
extend ActiveSupport::Concern extend ActiveSupport::Concern
ALLOWED_IMAGE_SCALER_WIDTHS = [ USER_AVATAR_SIZES = [16, 20, 23, 24, 26, 32, 36, 38, 40, 48, 60, 64, 96, 120, 160].freeze
400, PROJECT_AVATAR_SIZES = [15, 40, 48, 64, 88].freeze
200, GROUP_AVATAR_SIZES = [15, 37, 38, 39, 40, 64, 96].freeze
64,
48, ALLOWED_IMAGE_SCALER_WIDTHS = (USER_AVATAR_SIZES | PROJECT_AVATAR_SIZES | GROUP_AVATAR_SIZES).freeze
40,
26,
20,
16
].freeze
included do included do
prepend ShadowMethods prepend ShadowMethods
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment