? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
25 May 2017

Partial Pull Request for Issue #12648

Summary of Changes

This adds a .truncate class to Isis to truncate long text. To fix the issue with the popular articles module wrapping text, this truncate class is implemented.

Testing Instructions

Generate an article with a long title, get it to show up in the popular articles backend module, and have the module display in the admin dashboard with a span6 option so the module is somewhat smaller. Pre-patch, you should get an awkward looking break. Post-patch, the title will truncate and using the title attribute when hovering over the text it'll show the full non-truncated text.

Expected result

Should look something like the first item in this image

screen shot 2017-05-24 at 9 30 41 pm

Documentation Changes Required

If we have the CSS documented anywhere, add that.

Anyone who thinks they can do this better than me is welcome, I can barely write anything that's not PHP ?

avatar mbabker mbabker - open - 25 May 2017
avatar mbabker mbabker - change - 25 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2017
Category Modules Administration Templates (admin)
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 May 2017

I have tested this item successfully on e27bec0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16257.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 25 May 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 25 May 2017

I have tested this item successfully on e27bec0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16257.

avatar brianteeman brianteeman - test_item - 25 May 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 25 May 2017

Works as intended but i think the same should be done for the recently added articles and probably everywhere that break-word was added to the admin as a class

screen shot 2017-05-25 at 21 54 05
screen shot 2017-05-25 at 21 55 48


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16257.
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

RTC after two successful tests.

avatar brianteeman
brianteeman - comment - 26 May 2017

As this is already RTC I created a new companion PR for the latest articles module #16277

avatar C-Lodder
C-Lodder - comment - 26 May 2017

Seems fine to me. The only thing I'd probably suggest is adding the truncate class to a child div instead of the grid element, like so:

<div class="span8">
    <div class="truncate">
         ....
    </div>
</div>
avatar brianteeman
brianteeman - comment - 26 May 2017

@C-Lodder hardly seems worth creating the extra div in this case

avatar C-Lodder
C-Lodder - comment - 26 May 2017

It's more for semantic purposes but not a big issue. Can be left as is

avatar rdeutz rdeutz - change - 26 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-26 17:56:32
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 26 May 2017
avatar rdeutz rdeutz - merge - 26 May 2017

Add a Comment

Login with GitHub to post a comment