Length of category name under the topic title

AI 生成的摘要

The discussion revolves around adjusting the display of category names in a forum interface. evantill asks if it’s possible to prevent category names from being cut off and to match the width of the topic title in the category list. Tom_Newsom suggests adding custom CSS to remove the max-width restriction on category badges. evantill thanks for the solution. codinghorror notes that long category names are generally discouraged. Tom_Newsom adds that language differences may affect how the restriction works. meglio confirms the CSS works but mentions some letters are still hidden, prompting Tom_Newsom to suggest adding padding-right:10px; to adjust the layout.

Is it possible to display the category’s name without cutting it ? Or cutting it at the same length as the topic title ?

quite the same question for the category list :

Is it possible to make the list with the same width as the current selected category ?

1 个赞

Add the following to your custom CSS:

// Removes maximum width from category badge in breadcrumb and dropdown
.badge-wrapper span.badge-category {
  max-width: none;
}
.list-controls .category-dropdown-menu .badge-wrapper.bullet .badge-category {
  max-width: none;
}
3 个赞

thank you a lot ! :clap:

You generally don’t want enormously long category names, though. For the record. That’s why those “gentle” reminders are there :wink:

2 个赞

Although bear in mind that what might be an appropriate restriction in English, might not work so well for other languages.

4 个赞

This CSS does what I need, thanks.
However, some letters are still hidden:

hmm. maybe try adding padding-right:10px;
That might push the scrollbar over