# 头像大小应该如何渲染？

**URL:** <https://meta.discourse.org/t/how-are-avatar-sizes-supposed-to-render/358626>\
**Category:** Development\
**Created:** [2025年三月24日 16:37 UTC](https://meta.discourse.org/t/how-are-avatar-sizes-supposed-to-render/358626 "2025-03-24T16:37:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
**Post date:** [2025年三月24日 16:37 UTC](https://meta.discourse.org/t/how-are-avatar-sizes-supposed-to-render/358626/1 "2025-03-24T16:37:28Z")

</div>

正在尝试理解这里的默认值。在管理员后端，这些是默认值：

![image](https://global.discourse-cdn.com/meta/original/4X/9/e/f/9efae9f8118685e48062af18beb6d8ec4ce2e639.png)

Avatar 组件似乎接受六种命名尺寸，但它们目前的渲染比例不同：

| 名称 | 尺寸 |
| --- | --- |
| tiny | 24px |
| small | 24px |
| medium | 48px |
| large | 48px |
| extra\_large | 96px |
| huge | 144px |

所以我想知道实际的默认值应该是多少？以及是否有些命名尺寸已经过时？

然而，查看像 [Avatar Size and Shape](https://meta.discourse.org/t/avatar-size-and-shape/106124) 这样的官方组件，它提供了所有命名尺寸，并且还为 medium 和 large 调整了不同的布局……但随后头像的实际尺寸没有区别。

---

_[View the full topic](https://meta.discourse.org/t/how-are-avatar-sizes-supposed-to-render/358626)._
