Przeglądaj źródła

固定红色系文章缩略图比例

全屏风-红色系列表页的图文文章缩略图固定为 16:9,避免被栏目图片尺寸字段带成偏扁比例。

该调整仅在 screen-red-theme 且图文列表时生效,不影响其他主题。

Validation:

- git diff --check -- WebRoot/web/upload/ffkj-template/school-list.jsp

- curl -s http://ffkj-screen-red.localhost:4188/xiaoyuanxinwen/zhuantizhuanlan/anquanjiaoyu/ | rg -n 'article-list-thumb|--article-thumb-ratio|学校开展校园安全教育专题活动'
非繁 5 miesięcy temu
rodzic
commit
0f738e8682
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      WebRoot/web/upload/ffkj-template/school-list.jsp

+ 3 - 0
WebRoot/web/upload/ffkj-template/school-list.jsp

@@ -23,6 +23,9 @@
 <c:if test="${not empty navigation.photoSizeWidth and not empty navigation.photoSizeHeight}">
 	<c:set var="articleThumbStyle" value="--article-thumb-ratio:${navigation.photoSizeWidth} / ${navigation.photoSizeHeight};"/>
 </c:if>
+<c:if test="${portalThemeClass eq 'screen-red-theme' and isGraphicList}">
+	<c:set var="articleThumbStyle" value="--article-thumb-ratio:16 / 9;"/>
+</c:if>
 <!doctype html>
 <html lang="zh-CN">
 <head>