# Badge-category\_\_name needs a width constraint for long category names

**URL:** <https://meta.discourse.org/t/badge-category-name-needs-a-width-constraint-for-long-category-names/351242>\
**Category:** UX\
**Tags:** mobile\
**Created:** [February 8, 2025, 3:34pm UTC](https://meta.discourse.org/t/badge-category-name-needs-a-width-constraint-for-long-category-names/351242 "2025-02-08T15:34:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)\
**Post date:** [February 8, 2025, 3:34pm UTC](https://meta.discourse.org/t/badge-category-name-needs-a-width-constraint-for-long-category-names/351242/1 "2025-02-08T15:34:29Z")

</div>

Hi there, there is a bit of an issue with the `.badge-category__name` CSS when longer than normal category names are used. It looks like it needs a `max-width` constraint. Here’s Discourse Meta in mobile view mode with one of the category names edited in the HTML inspector:

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

---

_[View the full topic](https://meta.discourse.org/t/badge-category-name-needs-a-width-constraint-for-long-category-names/351242)._
