广场轮播:结果放标题前面,免得被长标题挤掉

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 02:13:44 +00:00
parent 346d548fed
commit 3626ce7d78

View File

@@ -495,7 +495,7 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
.rwi img{flex:none;width:20px;height:20px;border-radius:50%;object-fit:cover;background:#FFE3D3}
.rwi span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rwi span b{font-weight:800;color:#5A3226}
.rwi span em{font-style:normal;font-weight:800;color:#F2394A}
.rwi span em{font-style:normal;font-weight:800;color:#F2394A;margin:0 3px}
.rwb{flex:none;height:26px;padding:0 10px;border:0;border-radius:99px;background:linear-gradient(135deg,#FF8A65,#F2553A);color:#fff;font:inherit;font-size:11.5px;font-weight:800}
.gtp{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:2px 14px 4px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 6px 16px -14px rgba(120,60,40,.35)}
.gtp[hidden]{display:none}
@@ -1677,8 +1677,8 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
function rwItem(k) {
var L = rwList(); if (!L.length) return '';
var n = L[k % L.length], tt = n.title.length > 14 ? n.title.slice(0, 13) + '…' : n.title;
return '<button type="button" class="rwi" data-id="' + esc(n.id) + '"><img src="' + esc(avOf(n)) + '" alt="" loading="lazy"><span><b>' + esc(n.author) + '</b> 的《' + esc(tt) + '》' +
(n.real ? '<em>投稿上了广场</em>' : '<em>入选精选</em>') + '</span></button>';
return '<button type="button" class="rwi" data-id="' + esc(n.id) + '"><img src="' + esc(avOf(n)) + '" alt="" loading="lazy"><span><b>' + esc(n.author) + '</b>' +
(n.real ? '<em>投稿上了广场</em>' : '<em>入选精选</em>') + '《' + esc(tt) + '》</span></button>';
}
function rwRun() {
clearInterval(rwT); rwI = 0;