mobile content moment
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
.__content{
|
.__content{
|
||||||
max-height: calc(1.5rem * 12 );
|
max-height: calc(1.5rem * 12 );
|
||||||
// 1.5rem = line-height
|
// 1.5rem = line-height if change don't forget script.js
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
&.is_active{
|
&.is_active{
|
||||||
max-height: 100%!important;
|
max-height: 100%!important;
|
||||||
|
|||||||
@@ -327,14 +327,10 @@
|
|||||||
TxtMomentHeght = $('#moments .__content').height();
|
TxtMomentHeght = $('#moments .__content').height();
|
||||||
limitHeight = 16 * 8;
|
limitHeight = 16 * 8;
|
||||||
|
|
||||||
console.log(TxtMomentHeght);
|
|
||||||
|
|
||||||
$morelink = $('#moments .more_link');
|
$morelink = $('#moments .more_link');
|
||||||
|
|
||||||
if(TxtMomentHeght <= limitHeight){
|
if(TxtMomentHeght <= limitHeight){
|
||||||
console.log("salut");
|
|
||||||
$morelink.addClass('is_active');
|
$morelink.addClass('is_active');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user