From 84c4ebaec056aa3764170f9accb5f2aa0383314d Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 4 Sep 2026 11:41:58 +0800 Subject: [PATCH] =?UTF-8?q?style(news-detail):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E5=AD=97=E5=88=87=E6=8D=A2=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/news-detail.css | 7 +++++++ public/themes/website/1/zh/demo/news-detail.html | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/themes/dist_static/static/css/news-detail.css b/public/themes/dist_static/static/css/news-detail.css index dc037b6..c6b99e3 100644 --- a/public/themes/dist_static/static/css/news-detail.css +++ b/public/themes/dist_static/static/css/news-detail.css @@ -190,6 +190,7 @@ display: flex; align-items: center; justify-content: center; + min-width: 0; height: 3.5rem; overflow: hidden; border-radius: 1rem; @@ -223,6 +224,12 @@ .nd-pager__label { position: relative; z-index: 1; + display: block; + max-width: 100%; + padding: 0 1rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } @media (max-width: 1439px) { diff --git a/public/themes/website/1/zh/demo/news-detail.html b/public/themes/website/1/zh/demo/news-detail.html index d8be173..4fccda5 100644 --- a/public/themes/website/1/zh/demo/news-detail.html +++ b/public/themes/website/1/zh/demo/news-detail.html @@ -175,20 +175,20 @@ {/php} {if condition="empty($preId)"} - 上一篇:没有了 + 上一篇:没有了 {else /} - 上一篇:{$preTitle} + 上一篇:{$preTitle} {/if} {if condition="empty($nextId)"} - 下一篇:没有了 + 下一篇:没有了 {else /} - 下一篇:{$nextTitle} + 下一篇:{$nextTitle} {/if}