Automattic / Edit-Flow

WordPress plugin to accelerate your editorial workflow
https://editflow.org
359 stars 132 forks source link

i18n: post status in calendar view gets wrapped #378

Open achumakov opened 8 years ago

achumakov commented 8 years ago

Within calendar cell, there is a post status at the right. Internalional status names could be rather long, e.g. for Russian they get split into 2-3 lines, totally cluttering the page if there are many posts.

Any code to cut status text to some 3-8 characters would be great.

raduconst commented 6 years ago

@achumakov I think that a substr can be applied to the status in the calendar when the number of characters is greater than 8-9. Also, some dots can be added at the end too, like Publié e... @philipjohn What do you think about this kind of change? Would it be helpful? I think that it would make things look better on the calendar when there's more than one article in a table cell.

raduconst commented 6 years ago

The PR will make the elements from the calendar go from this:

screen shot 2018-01-25 at 11 16 58

to this:

screen shot 2018-01-25 at 11 18 53

I tried to test different cases to see how this would work.