# 如果子类别为只读，父类别不应显示“只读”徽章

**URL:** <https://meta.discourse.org/t/parent-category-should-not-have-read-only-badge-if-subcategory-is-read-only/394943>\
**Category:** UX\
**Tags:** composer\
**Created:** [2026年二月2日 13:12 UTC](https://meta.discourse.org/t/parent-category-should-not-have-read-only-badge-if-subcategory-is-read-only/394943 "2026-02-02T13:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2026年二月3日 17:42 UTC](https://meta.discourse.org/t/parent-category-should-not-have-read-only-badge-if-subcategory-is-read-only/394943/2 "2026-02-03T17:42:39Z")

</div>

感谢您的报告，我正在修复中！

> <https://github.com/discourse/discourse/pull/37492>
>
> Reported here: https://meta.discourse.org/t/parent-category-should-not-have-read…-only-badge-if-subcategory-is-read-only/394943
> 
> We don't need to double-render this badge, especially because doing so is sometimes inaccurate (possible to have a read-only subcategory and a parent you can post in). 
> 
> This only passes read-only to the actual category, not all ancestors. 
> 
> I've also taken the opportunity to reduce the badge height slightly.   
> 
> Before:
> \<img width="400" alt="image" src="https://github.com/user-attachments/assets/30e902ba-91e5-46f1-afec-fee48f32101e" /\>
> 
> After: 
> \<img width="400" alt="image" src="https://github.com/user-attachments/assets/0d28e980-1b79-4d74-b198-a78d30605c9e" /\>

---

_[View the full topic](https://meta.discourse.org/t/parent-category-should-not-have-read-only-badge-if-subcategory-is-read-only/394943)._
