新增:微信公众号配置增加前和背图的颜色配置,弥补图片无法铺满时的颜色表现,需要保存一下配置

This commit is contained in:
j m 2024-04-02 11:03:19 +08:00
parent 9ec2c6eeac
commit f423135c6f
4 changed files with 14 additions and 14 deletions

View File

@ -811,10 +811,20 @@ spec:
name: wechat_img_face
label: 公众号正面图
placeholder: '请输入/选择公众号正面图路径'
- $formkit: color
name: wechat_img_face_color
label: 公众号正面图背景色
help: 用于填充图片无法铺满部分的颜色。
value: '#07c261'
- $formkit: attachment
name: wechat_img_back
label: 公众号背面图
placeholder: '请输入/选择公众号背面图路径'
- $formkit: color
name: wechat_img_back_color
label: 公众号背面图背景色
help: 用于填充图片无法铺满部分的颜色。
value: '#ffffff'
- $formkit: attachment
name: love_oneself_avatar
label: 侧边栏恋爱墙-自己的头像

View File

@ -3545,7 +3545,6 @@ button.swiper-pagination-bullet {
line-height: 1.7em;
margin-bottom: 14px;
padding: 8px 15px;
//color: var(--dark-b);
color: var(--dark-c);
background: var(--bg-h);
border-left: 5px solid var(--theme);
@ -3586,16 +3585,6 @@ button.swiper-pagination-bullet {
}
}
//& ul {
// &:not(:last-child) {
// margin-bottom: 4px !important;
// }
//
// &:last-child {
// margin-bottom: 0px !important;
// }
//}
p:not(:last-child) {
margin-bottom: 4px !important;
}

View File

@ -8,10 +8,11 @@
th:href="${!#strings.isEmpty(wechatUrl) ? wechatUrl : (!#strings.isEmpty(faceImg) ? faceImg : (!#strings.isEmpty(backImg) ? backImg : '#'))}"
th:onclick="${#strings.isEmpty(wechatUrl)} ? 'event.preventDefault();'" target="_blank">
<div th:class="${!#strings.isEmpty(faceImg) && !#strings.isEmpty(backImg) ? 'flip-content animation' : 'flip-content'}">
<div class="wechatFace">
<div class="wechatFace" th:style="|background-color: ${theme.config.sidebar.wechat.wechat_img_face_color};|">
<img th:if="${!#strings.isEmpty(faceImg)}" height="auto" width="auto" th:src="${faceImg}" alt="微信公众号"/>
</div>
<div th:class="${!#strings.isEmpty(faceImg) && !#strings.isEmpty(backImg) ? 'wechatBack animation' : 'wechatBack'}" th:classappend="${#strings.isEmpty(faceImg)}? 'show'">
<div th:class="${!#strings.isEmpty(faceImg) && !#strings.isEmpty(backImg) ? 'wechatBack animation' : 'wechatBack'}" th:classappend="${#strings.isEmpty(faceImg)}? 'show'"
th:style="|background-color: ${theme.config.sidebar.wechat.wechat_img_back_color};|">
<img th:if="${!#strings.isEmpty(backImg)}" height="auto" width="auto" th:src="${backImg}" alt="微信公众号"/>
</div>
</div>

View File

@ -22,6 +22,6 @@ spec:
settingName: theme-dream-setting
configMapName: theme-dream-configMap
# 版本号
version: 1.0.3.23
version: 1.0.3.24
# 最低支持的 Halo 版本
require: ">=2.6.0"