fix:解决文字样式问题

fix:处理未安装插件的情况
This commit is contained in:
Airbo ZH 2023-04-12 12:15:48 +08:00 committed by airbo
parent c30fe22a82
commit 2708068a85
2 changed files with 18 additions and 7 deletions

View File

@ -8803,10 +8803,8 @@ a.categoryButton:hover {
/* 主页哔哔bb */
#bber-talk {
width: 100%;
/* height: 25px; */
/* line-height: 25px; */
height: 31px;
line-height: 0px;
height: 25px;
line-height: 25px;
display: flex;
flex-direction: column;
}

View File

@ -1,12 +1,25 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="bbTimeList container" id="bbTimeList" th:fragment="moment" th:if="${theme.config.top.moment}">
<div class="bbTimeList container" id="bbTimeList" th:fragment="moment" th:if="not ${momentFinder}">
<!-- 未安装插件 -->
<i class="iconfont icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk" onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'">
<div class="li-style swiper-slide">这里需要安装瞬间的插件</div>
<div class="li-style swiper-slide">去安装吧!</div>
</div>
</div>
<i class="bber-gotobb fas fa-arrow-circle-right" onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'" title="下载插件"></i>
</div>
<div class="bbTimeList container" id="bbTimeList" th:fragment="moment" th:if="${theme.config.top.moment} and ${momentFinder}">
<!-- 瞬间插件 -->
<i class="iconfont icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk" onclick="location.href='/moments'">
<div class="swiper-wrapper" id="bber-talk" onclick="location.href='/moments'" th:if="${momentFinder}">
<th:block th:each="moment : ${momentFinder.listAll()}" th:with="content=${moment.spec.content}">
<div class="li-style swiper-slide" th:if="${not #strings.isEmpty(content.html)}" th:utext="${content.html}"></div>
<div class="li-style swiper-slide" th:if="${not #strings.isEmpty(content.raw)}" th:text="${#strings.substringBefore(#strings.substringAfter(content.raw,'<p>'),'</p>')}"></div>
</th:block>
</div>
</div>