Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
61.1
edited by Super Admin
on 2026/03/17 15:18
on 2026/03/17 15:18
Change comment:
There is no comment for this version
To version
58.1
edited by Super Admin
on 2026/03/17 14:05
on 2026/03/17 14:05
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -665,12 +665,6 @@ 665 665 <div class="activity-thread-title"> 666 666 <h3 #if($actFeatured == '1')class="featured-title"#end>$!escapetool.xml($!actTitle) #if($actFeatured == '1')<svg class="ico ico-fixed-14 ico-star-offset" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>#end</h3> 667 667 <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span> 668 - #set($actTagsList = $activity.getValue('tags')) 669 - #if($actTagsList && !$actTagsList.isEmpty()) 670 - #foreach($tagItem in $actTagsList) 671 - #if($tagItem && $tagItem.trim() != '')<span class="activity-tag-badge">$escapetool.xml($tagItem)</span>#end 672 - #end 673 - #end 674 674 </div> 675 675 <div class="thread-meta-row"> 676 676 <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span> ... ... @@ -1011,12 +1011,8 @@ 1011 1011 } 1012 1012 // 長文投稿の折りたたみ初期化 1013 1013 document.querySelectorAll('.thread-post-body').forEach(function(body) { 1014 - // 先にtruncatedを仮適用してline-clampを有効にし、高さの差分で判定 1015 - var fullH = body.scrollHeight; 1016 - body.classList.add('truncated'); 1017 - var clampedH = body.clientHeight; 1018 - body.classList.remove('truncated'); 1019 - if (fullH > clampedH + 10) { 1008 + // 画像・ファイル添付を除いたテキスト部分の高さを判定 1009 + if (body.scrollHeight > body.clientHeight + 10 || body.textContent.length > 300) { 1020 1020 body.classList.add('truncated'); 1021 1021 var btn = document.createElement('button'); 1022 1022 btn.className = 'btn-read-more';