# 徽章名称的字符限制

**URL:** <https://meta.discourse.org/t/character-limit-of-badge-name/141942>\
**Category:** Support\
**Tags:** badges\
**Created:** [2020年二月18日 20:57 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942 "2020-02-18T20:57:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkearsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkearsley/32/155788_2.png) [@tkearsley](https://meta.discourse.org/u/tkearsley)\
**Post date:** [2020年二月18日 20:57 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/1 "2020-02-18T20:57:19Z")

</div>

有人能告诉我个人资料卡片上徽章描述的字符限制吗？

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e4d664be2ce497e73fd4466c6c313a8410972c69.jpeg)

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2020年二月18日 22:02 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/2 "2020-02-18T22:02:40Z")

</div>

你是指徽章名称吗？（这就是你圈出的部分）。徽章描述仅在悬停时显示。

---

<div class="post-metadata">

**Author:** ![tkearsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkearsley/32/155788_2.png) [@tkearsley](https://meta.discourse.org/u/tkearsley)\
**Post date:** [2020年二月19日 02:15 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/3 "2020-02-19T02:15:38Z")

</div>

你好，Josh，

是的，我指的是徽章名称。

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2020年二月19日 02:37 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/4 "2020-02-19T02:37:26Z")

</div>

我认为 Discourse 并未对徽章名称的长度进行验证。其长度限制将由数据库中 `string` 类型允许的最大大小决定。不过，如果徽章名称中包含过长的单词，会导致徽章页面出现水平滚动条，因此最好避免这种情况：

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/a/ea3b485c329866f3628210844a4e0b8db52288b5.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2024年一月18日 22:21 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/5 "2024-01-18T22:21:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年一月19日 00:12 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/6 "2024-01-19T00:12:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年一月19日 00:22 UTC](https://meta.discourse.org/t/character-limit-of-badge-name/141942/7 "2024-01-19T00:22:28Z")

</div>

关于此问题的一个小更新 - 许多文本字段现在都应用了最大值。徽章名称现在最多 100 个字符。
