fix: token图标改用纯path SVG内联,避免text元素在部分系统不显示

This commit is contained in:
thzxx
2026-04-14 18:47:37 +08:00
parent 21d774fab4
commit 80ea5df68d
+1 -1
View File
@@ -34,7 +34,7 @@
<line x1="12" y1="17" x2="12.01" y2="17"/>
</svg>
</button>
<span class="total-tokens" id="totalTokens" title="当前会话总 token 消耗"><svg class="token-icon" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.2"/><text x="8" y="11.5" text-anchor="middle" fill="currentColor" font-size="9" font-weight="700" font-family="sans-serif">T</text></svg> <span id="totalTokensValue">0</span></span>
<span class="total-tokens" id="totalTokens" title="当前会话总 token 消耗"><svg class="token-icon" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.2"/><path d="M5.2 5h5.6v1.5H9.2v6.2H6.8V6.5H5.2V5z" fill="currentColor"/></svg> <span id="totalTokensValue">0</span></span>
</div>
<div class="header-right">
<div class="conn-status pending" id="connStatus" title="连接状态">