mobile content moment

This commit is contained in:
Tessier
2020-11-29 18:14:45 +01:00
parent f425cb2abc
commit c9330e8e5f
3 changed files with 2 additions and 6 deletions
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@
}
.__content{
max-height: calc(1.5rem * 12 );
// 1.5rem = line-height
// 1.5rem = line-height if change don't forget script.js
overflow: hidden;
&.is_active{
max-height: 100%!important;
@@ -327,14 +327,10 @@
TxtMomentHeght = $('#moments .__content').height();
limitHeight = 16 * 8;
console.log(TxtMomentHeght);
$morelink = $('#moments .more_link');
if(TxtMomentHeght <= limitHeight){
console.log("salut");
$morelink.addClass('is_active');
}