mobile content moment
This commit is contained in:
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');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user