Browse Source

调整红色模板首页移动端首屏摘要样式

在红色模板首页的移动端断点下,收紧首屏轮播摘要的宽度与字号,改为左对齐单行展示,并补上溢出省略,保证 626px 一类手机宽度下摘要不再换行且左侧保留 30px 留白。

同步更新模板源样式副本,并调整 screen-index.jsp 的 CSS 版本号,让浏览器普通刷新即可拿到新的 portal-source.css,而不是继续命中旧缓存。

Validation:\n- 在 http://ffkj-screen-red.localhost:4188/ 以 626x1307 视口实测,摘要为单行、left 约 29px、font-size 18px、white-space 为 nowrap\n- 截图复核首屏视觉,文字未压到右下角圆点
非繁 5 months ago
parent
commit
ea86d3263f

+ 9 - 0
WebRoot/main/ffkj-portal/portal-source.css

@@ -9829,6 +9829,15 @@ body.screen-red-theme .screen-hero-slide .screen-hero-summary {
   body.screen-red-theme .screen-hero-slide .screen-hero-summary {
   body.screen-red-theme .screen-hero-slide .screen-hero-summary {
     left: 30px;
     left: 30px;
     bottom: 30px;
     bottom: 30px;
+    max-width: calc(100% - 150px);
+    margin-top: 0;
+    font-size: clamp(18px, 2.8vw, 22px);
+    line-height: 1.35;
+    text-align: left;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    transform: none;
   }
   }
 }
 }
 
 

+ 9 - 0
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -9826,6 +9826,15 @@ body.screen-red-theme .screen-hero-slide .screen-hero-summary {
   body.screen-red-theme .screen-hero-slide .screen-hero-summary {
   body.screen-red-theme .screen-hero-slide .screen-hero-summary {
     left: 30px;
     left: 30px;
     bottom: 30px;
     bottom: 30px;
+    max-width: calc(100% - 150px);
+    margin-top: 0;
+    font-size: clamp(18px, 2.8vw, 22px);
+    line-height: 1.35;
+    text-align: left;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    transform: none;
   }
   }
 }
 }
 
 

+ 1 - 1
WebRoot/web/upload/ffkj-template/screen-index.jsp

@@ -9,7 +9,7 @@
 <c:set var="screenPortalCssVersion" value="20260623-news-bg"/>
 <c:set var="screenPortalCssVersion" value="20260623-news-bg"/>
 <c:set var="screenPortalJsVersion" value="20260623-hero-wheel-return"/>
 <c:set var="screenPortalJsVersion" value="20260623-hero-wheel-return"/>
 <c:if test="${portalThemeClass eq 'screen-red-theme'}">
 <c:if test="${portalThemeClass eq 'screen-red-theme'}">
-	<c:set var="screenPortalCssVersion" value="20260627-screen-red-video-buttons"/>
+	<c:set var="screenPortalCssVersion" value="20260627-screen-red-hero-mobile-summary"/>
 	<c:set var="screenPortalJsVersion" value="20260627-article-video-fit"/>
 	<c:set var="screenPortalJsVersion" value="20260627-article-video-fit"/>
 </c:if>
 </c:if>
 <!doctype html>
 <!doctype html>