fix(photo): 修复瞬间图片换行问题,#102

This commit is contained in:
nineya 2024-01-23 16:22:59 +08:00
parent 67bb3e25ef
commit 2d38a7734c

View File

@ -12,8 +12,8 @@
<div class="journal-content fold"> <div class="journal-content fold">
<div class="main-content not-toc" data-target="Moment" th:data-id="${moment.metadata.name}"> <div class="main-content not-toc" data-target="Moment" th:data-id="${moment.metadata.name}">
[(${moment.spec.content.html})] [(${moment.spec.content.html})]
<mew-photos th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}"> <mew-photos th:if="${!#lists.isEmpty(moment.spec.content.medium)}">
<img th:if="${momentItem.type.name == 'PHOTO'}" th:src="${momentItem.url}" /> <img th:each="momentItem : ${moment.spec.content.medium}" th:if="${momentItem.type.name == 'PHOTO'}" th:src="${momentItem.url}" />
</mew-photos> </mew-photos>
<th:block th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}"> <th:block th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}">
<mew-video th:if="${momentItem.type.name == 'VIDEO'}" th:src="${momentItem.url}"></mew-video> <mew-video th:if="${momentItem.type.name == 'VIDEO'}" th:src="${momentItem.url}"></mew-video>