Notifications
Clear all

[Solved] File name label too long

4 Posts
2 Users
0 Reactions
815 Views
Posts: 4
Customer
Topic starter
(@dmitry-makarov)
Member
Joined: 4 years ago

Если название загружаемого файла достаточно длинное, то его метка на форуме выглядит как одна строка без переносов, что портит дизайн страницы. Как мне это исправить?

2021 05 29 20 50 06
3 Replies
Posts: 4
Customer
Topic starter
(@dmitry-makarov)
Member
Joined: 4 years ago

If the name of the uploaded file is long enough, then its label on the forum looks like a single line without hyphenation, which spoils the design of the page. How do I fix this?

2021 05 29 20 50 06
1 Reply
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

Hi @dmitry-makarov,

Insert this CSS code in Dashboard > Forums > Settings > Styles > Custom CSS Code textarea, save it, delete all caches, go to forum front-end and press Ctrl+F5:

#wpforo #wpforo-wrap .wpfa-item a span{
   white-space: break-spaces;
   display: inline-block;
   word-break: break-all;
   padding-right: 25px;
   text-align: left;
   vertical-align: middle;
}
Posts: 4
Customer
Topic starter
(@dmitry-makarov)
Member
Joined: 4 years ago

It works! Thank you very much!

Share:
Scroll to top