? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
14 Mar 2022

Pull Request for Issue # .

Summary of Changes

In the Atum template I noticed a wrong implementation of the line-clamp property in combination with display box which throws a waring when using a CSS prefixer. This styling is also obsolete as truncating is added in the PHP code.

Testing Instructions

Apply the patch and build the CSS. Go to modules and click on "New". Nothing is changed in the layout.

avatar RickR2H RickR2H - open - 14 Mar 2022
avatar RickR2H RickR2H - change - 14 Mar 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Mar 2022
Category Repository NPM Change
avatar RickR2H RickR2H - change - 14 Mar 2022
Title
Prefix warning: You should write display: flex by final spec instead of display: box
Fix wrong implementation of display: box and line-clamp
avatar RickR2H RickR2H - edited - 14 Mar 2022
avatar brianteeman
brianteeman - comment - 14 Mar 2022

This is not correct. Well the css might be (i dont know) but the intended behaviour is to truncate the text at 200 characters

<?php $desc = HTMLHelper::_('string.truncate', $this->escape(strip_tags($item->desc)), 200); ?>

avatar RickR2H
RickR2H - comment - 14 Mar 2022

As my CSS prefixer tripped over the code I noticed the wrong implementation of the CSS. I agree with the 200 character truncate. I'll just remove the wrong code.

avatar RickR2H RickR2H - change - 14 Mar 2022
Labels Added: NPM Resource Changed ?
avatar RickR2H RickR2H - change - 14 Mar 2022
The description was changed
avatar RickR2H RickR2H - edited - 14 Mar 2022
avatar RickR2H RickR2H - change - 14 Mar 2022
Title
Fix wrong implementation of display: box and line-clamp
Remove wrong implementation of display: box and line-clamp
avatar RickR2H RickR2H - edited - 14 Mar 2022
avatar RickR2H
RickR2H - comment - 14 Mar 2022

@brianteeman thanks for the review

avatar brianteeman
brianteeman - comment - 14 Mar 2022

Confirming that chrome agrees the current css is wrong

image

avatar brianteeman
brianteeman - comment - 14 Mar 2022

I have tested this item successfully on c6f1333


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

avatar brianteeman brianteeman - test_item - 14 Mar 2022 - Tested successfully
avatar Quy
Quy - comment - 14 Mar 2022

I have tested this item successfully on c6f1333


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

avatar Quy Quy - test_item - 14 Mar 2022 - Tested successfully
avatar Quy Quy - change - 14 Mar 2022
Status Pending Ready to Commit
avatar Quy
Quy - comment - 14 Mar 2022

RTC


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

avatar C-Lodder
C-Lodder - comment - 16 Mar 2022

Browsers are only complaining because it hasn't been implemented properly. The feature is completely prefixed.

Just use (with -webkit- prefix):

&-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

image

avatar RickR2H
RickR2H - comment - 16 Mar 2022

@C-Lodder I'm aware, but like @brianteeman said the text get truncated in the PHP. This was an old implementation to truncate by CSS to three lines. So code is obsolete.

avatar laoneo laoneo - change - 18 Mar 2022
Labels Added: ?
avatar laoneo laoneo - change - 18 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-18 16:14:09
Closed_By laoneo
avatar laoneo laoneo - close - 18 Mar 2022
avatar laoneo laoneo - merge - 18 Mar 2022
avatar laoneo
laoneo - comment - 18 Mar 2022

Thanks!

Add a Comment

Login with GitHub to post a comment