Limit the number of characters displayed in the title

Hello!

Please tell me how to limit the number of characters in a topic title when viewing a list of all topics.

2 Likes

There’s the max topic title length setting, but do you mean just to shorten the display in the topic list? (rather than actually limit the title length itself)

5 Likes

to

1 Like

Yes, i need this

2 Likes

You can try this CSS. Adjust the width as you wish.

.topic-list-item {
    .link-top-line {
        max-width: 20em;
    
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
8 Likes

Thank you!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.