]> source.dussan.org Git - gitea.git/commit
Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951)
authorsilverwind <me@silverwind.io>
Thu, 16 Dec 2021 02:18:38 +0000 (18:18 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 02:18:38 +0000 (10:18 +0800)
commitcc129d2ca22100fe9c28106d9bc302678651f339
treea4fb2c926d501230267d03b09d6a9518a4e54c32
parente78ee73d712d8d248b9a3a552187d06632000331
Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951)

Save a bit of bandwidth by only requesting 3-times the rendered avatar
size. Factor 4 is only really beneficial on a handful of mobile phones
and I don't think they are the primary device we design for.

Configurability contributed by zeripath.

Fixes: https://github.com/go-gitea/gitea/pull/17422
Fixes: https://github.com/go-gitea/gitea/issues/16287
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
models/avatars/avatar.go
modules/repository/commits.go
modules/repository/commits_test.go
modules/setting/picture.go
modules/templates/helper.go