From f4a75063289c80374776887dbd382cbfc5046d46 Mon Sep 17 00:00:00 2001 From: ken Date: Mon, 3 Aug 2026 17:38:04 +0800 Subject: [PATCH] update --- assets/javascripts/app.js | 24 +++++++++---------- .../stylesheets/template/modules/gallery.scss | 9 +++++++ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 6f5347d..8ad56be 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -3219,22 +3219,20 @@ $(document).ready(function () { fixTabKeyboardNav(); }); function removeBareUrlLinks() { - setTimeout(function () { - $('.dtr-control a').each(function () { - var $a = $(this); - var text = $a.text().trim(); - var href = $a.attr('href') || ''; + setTimeout(function() { + $('#table0_wrapper td a').each(function() { + var $a = $(this); + var text = $a.text().trim(); - // 判斷連結文字是否為網址(以 http:// 或 https:// 開頭) - if (/^https?:\/\//i.test(text)) { - $a.replaceWith(text); - } - }); - }, 500); + if (/^https?:\/\//i.test(text)) { + $a.replaceWith(text); + } + }); + }, 500); } -$(document).ready(function () { - removeBareUrlLinks(); +$(document).ready(function() { + removeBareUrlLinks(); }); $(document).ready(function () { $('.widget-breadcrumb .breadcrumb li:last-child a').attr('aria-current', 'page'); diff --git a/assets/stylesheets/template/modules/gallery.scss b/assets/stylesheets/template/modules/gallery.scss index 7fac14d..b6212b8 100644 --- a/assets/stylesheets/template/modules/gallery.scss +++ b/assets/stylesheets/template/modules/gallery.scss @@ -52,6 +52,15 @@ } &.widget2 { + .gallery-text { + height: 3em; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + white-space: normal; + } a.gallery-text { display: block; min-height: 4em;