fix: 消息页"系统消息"标题跟随 Tab 切换显示

- 系统消息区域仅在 system Tab 下渲染,其他 Tab(点赞、关注、@我)不再显示系统消息标题
This commit is contained in:
2026-06-02 19:39:01 +08:00
parent 95e1728c6e
commit 0614883a4f

View File

@ -38,6 +38,7 @@
<div class="msg-main"> <div class="msg-main">
<!-- 系统消息区域 --> <!-- 系统消息区域 -->
{{if eq .CurrentTab "system"}}
<div class="msg-system-section"> <div class="msg-system-section">
<div class="msg-system-header"> <div class="msg-system-header">
<svg class="msg-system-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg> <svg class="msg-system-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
@ -45,6 +46,7 @@
</div> </div>
<div class="msg-system-divider"></div> <div class="msg-system-divider"></div>
</div> </div>
{{end}}
{{if .Messages}} {{if .Messages}}
<div class="msg-toolbar"> <div class="msg-toolbar">