Commit 5767a298 authored by nmilojevic1's avatar nmilojevic1

Add popular avatar sizes for user, group and project

- Allow all supported avatar sizes
parent 334e139d
...@@ -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